Class IndexPair
java.lang.Object
|
+--IndexPair
- public class IndexPair
- extends java.lang.Object
- implements java.lang.Cloneable
A class to store a Joint index and a Degree index, which is used elsewhere
to associate a name with specific Joint and Degree objects in the Robot's
hierarchy; using a Hashtable, the name is used as a key and the IndexPair
as the value, allowing recall of a specific Degree by name.
- See Also:
Robot
,
Joint
,
Degree
Field Summary |
int |
degree
The index of a specific Degree. |
int |
joint
The index the Joint containing a specific Degree. |
Constructor Summary |
IndexPair(int joint,
int degree)
Creates a new IndexPair, given and index for the joint and the degree. |
Method Summary |
java.lang.Object |
clone()
Clones this IndexPair object. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
joint
public int joint
- The index the Joint containing a specific Degree.
degree
public int degree
- The index of a specific Degree.
IndexPair
public IndexPair(int joint,
int degree)
- Creates a new IndexPair, given and index for the joint and the degree.
- Parameters:
joint
- the Joint index.degree
- the Degree index.
clone
public java.lang.Object clone()
- Clones this IndexPair object.
- Returns:
- the Object copy of this object.
- Overrides:
- clone in class java.lang.Object