|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tensegrity.palojava.DimElementInfo
public final class DimElementInfo
DimElementInfo
A simple data class which holds the name and the type of an element.
All valid element types are defined as constants within this class.
Field Summary | |
---|---|
static int |
DIMELEMENTTYPECONSOLIDATED
valid element types. |
static int |
DIMELEMENTTYPENUMERIC
valid element types. |
static int |
DIMELEMENTTYPERULE
valid element types. |
static int |
DIMELEMENTTYPESTRING
valid element types. |
Constructor Summary | |
---|---|
DimElementInfo(java.lang.String name,
int type)
Creates a new DimElementInfo instance. |
Method Summary | |
---|---|
static java.lang.String |
dimElementType2String(int type)
Returns a String representation of the given element type |
java.lang.String |
getName()
Returns the element name |
int |
getType()
Returns the element type, i.e. one of defined type constants |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DIMELEMENTTYPENUMERIC
public static final int DIMELEMENTTYPESTRING
public static final int DIMELEMENTTYPECONSOLIDATED
public static final int DIMELEMENTTYPERULE
Constructor Detail |
---|
public DimElementInfo(java.lang.String name, int type)
DimElementInfo
instance.
name
- the element nametype
- the element type as defined in this classMethod Detail |
---|
public java.lang.String getName()
public int getType()
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String dimElementType2String(int type)
String
representation of the given element type
type
- one of the defined element type constants
String
representation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |