public static class CoordinateSetter.SetStatus
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
converged()
Returns
true if the loop solver converged, or if none of the
requested coordinates are embedded in a kinematic loop and all
coordinates could therefore be set freely. |
java.util.List<JointCoordinateHandle> |
getCoordinates()
Returns the coordinates that were requested to be set, as a list of
JointCoordinateHandles. |
boolean |
isDependent(JointCoordinateHandle handle)
Queries whether a specific requested coordinate was determined to be
dependent.
|
boolean |
isFree(JointCoordinateHandle handle)
Queries whether a specific requested coordinate was determined
to be free.
|
boolean |
isLimited(JointCoordinateHandle handle)
Queries whether setting a specific requested coordinate was restricted
because of coordinate limits.
|
int |
numCoordinates()
Returns the number of coordinates that were requested to be set.
|
int |
numDependent()
Returns the number of requested coordinates that were determined to be
dependent.
|
int |
numFree()
Returns the number of requested coordinates that were determined to be
free.
|
int |
numIterations()
Total number of interations required by the loop solver.
|
int |
numLimited()
Returns the number of requested coordinates whose setting was
restricted because of coordinate limits.
|
java.lang.String |
toString()
Returns a short string the partially describes this status.
|
public int numIterations()
public boolean converged()
true if the loop solver converged, or if none of the
requested coordinates are embedded in a kinematic loop and all
coordinates could therefore be set freely.true if the loop solver converged or was not neededpublic int numCoordinates()
public java.util.List<JointCoordinateHandle> getCoordinates()
JointCoordinateHandles.public int numDependent()
public boolean isDependent(JointCoordinateHandle handle)
false if the
coordinate is not one of the requested coordinates.
Dependent coordinates will not generally be located near their requested values, since this kinematic system does not have sufficient degrees of freedom to provide this.
handle - handle to the coordinatetrue if the coordinate was one of the requested
coordinates and was determined to be dependentpublic int numLimited()
isLimited(JointCoordinateHandle)
returns true.public boolean isLimited(JointCoordinateHandle handle)
false if the coordinate is not one of the requested coordinates.
Even if converged() returns true, coordinates that
are limit restricted will not generally be located near their
requested values.
handle - handle to the coordinatetrue if the coordinate was one of the requested
coordinates, and setting it was restricted because of dependent
coordinate limitspublic int numFree()
isFree(JointCoordinateHandle) returns true.public boolean isFree(JointCoordinateHandle handle)
isDependent(JointCoordinateHandle) and isLimited(JointCoordinateHandle) both return false.
If converged() returns true, then free coordinates should be
located at (or very near to) their requested values.
handle - handle to the coordinatetrue if the coordinate was one of the requested
coordinates and was determined to be freepublic java.lang.String toString()
toString in class java.lang.Object