sim.util.geo
Class AttributeValue
java.lang.Object
sim.util.geo.AttributeValue
- All Implemented Interfaces:
- java.io.Serializable
public class AttributeValue
- extends java.lang.Object
- implements java.io.Serializable
This contains the values associated with MasonGeometry attributes.
This consists of a value,
whether to display this attribute in the inspector or not, and the number of bytes needed to store the value.
The value can be an Integer, Float, or String.
- See Also:
MasonGeometry
,
ShapeFileImporter
,
ShapeFileExporter
,
Serialized Form
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
AttributeValue
public AttributeValue()
AttributeValue
public AttributeValue(java.lang.Object v)
AttributeValue
public AttributeValue(java.lang.Object v,
boolean h)
toString
public java.lang.String toString()
- Human readable form
- Overrides:
toString
in class java.lang.Object
clone
public java.lang.Object clone()
- Simple, shallow clone
- Overrides:
clone
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getValue
public java.lang.Object getValue()
- Returns:
- the value
setValue
public void setValue(java.lang.Object value)
- Parameters:
value
- the value to set
setInteger
public void setInteger(int value)
getInteger
public java.lang.Integer getInteger()
setDouble
public void setDouble(double value)
getDouble
public java.lang.Double getDouble()
setString
public void setString(java.lang.String value)
getString
public java.lang.String getString()
isHidden
public boolean isHidden()
- Returns:
- whether this is visible to the inspector
setHidden
public void setHidden(boolean hidden)
- Parameters:
hidden
- dictates visibility to the inspector