sugr
Class Incident

java.lang.Object
  extended bysugr.BiRelationalProperty
      extended bysugr.Incident
All Implemented Interfaces:
java.lang.Cloneable, RelationalProperty

public class Incident
extends BiRelationalProperty

Contains methods if two elements are incident or not. You can retrieve then a lot of information about this test, for example: chiČ-value used, the testvalue and so on.

Version:
1.1 (12.2.2003)
Fixed: compute_distance -> Point_2D/Point_2D changed into Point_2D/Line_2D
Fixed: compute_distance -> Point_3D/Line_3D missing .trans() a dist[0]-calculation
1.2 (20.2.2003)
Fixed: computation of error propagation (ep) was wrong everywhere (except Point_3D/Line_3D, Line_3D/Plane_3D). ep needs also the vector of the elements - just adding covariances is not enough ;-)
1.2.1 (24.2.2003)
Changed: works now on copies of entities. This preserves the original input values from changing!!! 2.0 (June 2003)
Is now derived from BiRelationalProperty !!!

Author:
Norbert Fischer

Field Summary
 
Fields inherited from class sugr.BiRelationalProperty
first, secondEntityType
 
Constructor Summary
Incident(Entity e, java.lang.Class secondClass)
          Build up an Incident-Relation between two entities
Incident(Line_2D l, java.lang.Class secondClass)
          Build up an Incident-Relation between Point_2D and Line_2D
Incident(Line_3D l, java.lang.Class secondClass)
          Build up an Incident-Relation between two Line_3D
Incident(Plane_3D a, java.lang.Class secondClass)
          Build up an Incident-Relation between Point_3D and Plane_3D
Incident(Point_2D x, java.lang.Class secondClass)
          Build up an Incident-Relation between Point_2D and Line_2D
Incident(Point_3D x, java.lang.Class secondClass)
          Build up an Incident-Relation between Point_3D and Plane_3D
 
Method Summary
 Matrix getCovarianceOfJacobianRow(int row)
           Returns the Covariance Matrix of the row-vector of the Jacobian Matrix A of the first Entity and the relation type.
 int getDof()
           Compute degrees of freedom of that Relation
 Matrix getJacobian()
           Return Matrix Jacobian A of the first Entity and the relation type.
 
Methods inherited from class sugr.BiRelationalProperty
changeNullspace, clone, doCondition, doCondition, ensureConstraints, getCovarianceOfObservations, getFirstEntity, getJacobianOfObservationConstraints, getObservations, getReducedCovarianceOfObservations, getTargetType, getValueOfObservationConstraints, setObservations
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Incident

public Incident(Entity e,
                java.lang.Class secondClass)
Build up an Incident-Relation between two entities

Parameters:
e - an entity
secondClass - the other class

Incident

public Incident(Point_2D x,
                java.lang.Class secondClass)
Build up an Incident-Relation between Point_2D and Line_2D

Parameters:
x - a Point_2D
secondClass - could be a Line_2D

Incident

public Incident(Point_3D x,
                java.lang.Class secondClass)
Build up an Incident-Relation between Point_3D and Plane_3D

Parameters:
x - a Point_3D
secondClass - could be a Plane_3D or Line_3D

Incident

public Incident(Line_3D l,
                java.lang.Class secondClass)
Build up an Incident-Relation between two Line_3D

Parameters:
l - first Line_3D
secondClass - could be a Line_3D or Plane_3D or Point_3D

Incident

public Incident(Line_2D l,
                java.lang.Class secondClass)
Build up an Incident-Relation between Point_2D and Line_2D

Parameters:
l - a Line_2D
secondClass - could be a Point_2D

Incident

public Incident(Plane_3D a,
                java.lang.Class secondClass)
Build up an Incident-Relation between Point_3D and Plane_3D

Parameters:
a - a Plane_3D
secondClass - could be a Point_3D or Line_3D
Method Detail

getJacobian

public Matrix getJacobian()

Return Matrix Jacobian A of the first Entity and the relation type.

Specified by:
getJacobian in interface RelationalProperty
Specified by:
getJacobian in class BiRelationalProperty
Returns:
Matrix Jacobian A


getDof

public int getDof()

Compute degrees of freedom of that Relation

Specified by:
getDof in interface RelationalProperty
Specified by:
getDof in class BiRelationalProperty
Returns:
degrees of freedom of that Relation


getCovarianceOfJacobianRow

public Matrix getCovarianceOfJacobianRow(int row)

Returns the Covariance Matrix of the row-vector of the Jacobian Matrix A of the first Entity and the relation type.

Specified by:
getCovarianceOfJacobianRow in interface RelationalProperty
Specified by:
getCovarianceOfJacobianRow in class BiRelationalProperty
Parameters:
row - Row vector, for which the Covariance matrix is to be returned
Returns:
covariance of the row vector of the jacobian