org.simulare
Class Attribute
java.lang.Object
org.simulare.Named
org.simulare.Attribute
- All Implemented Interfaces:
- Name
- public class Attribute
- extends Named
Represents an attribute of a simulation item.
Constructor Summary |
Attribute(java.lang.String name,
java.lang.Class type,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Attribute
public Attribute(java.lang.String name,
java.lang.Class type,
java.lang.Object value)
getType
public java.lang.Class getType()
setType
public void setType(java.lang.Class type)
getValue
public java.lang.Object getValue()
setValue
public void setValue(java.lang.Object value)
getBoolean
public boolean getBoolean()
getChar
public char getChar()
getByte
public byte getByte()
getShort
public short getShort()
getInt
public int getInt()
getLong
public long getLong()
getFloat
public float getFloat()
getDouble
public double getDouble()
getString
public java.lang.String getString()
getCopy
public Attribute getCopy()
removeAttributeListener
public void removeAttributeListener(AttributeListener l)
addAttributeListener
public void addAttributeListener(AttributeListener l)
fireTypeChanged
protected void fireTypeChanged(AttributeEvent e)
fireValueChanged
protected void fireValueChanged(AttributeEvent e)