org.simulare
Class Attribute

java.lang.Object
  extended byorg.simulare.Named
      extended byorg.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)
           
 
Method Summary
 void addAttributeListener(AttributeListener l)
           
protected  void fireTypeChanged(AttributeEvent e)
           
protected  void fireValueChanged(AttributeEvent e)
           
 boolean getBoolean()
           
 byte getByte()
           
 char getChar()
           
 Attribute getCopy()
           
 double getDouble()
           
 float getFloat()
           
 int getInt()
           
 long getLong()
           
 short getShort()
           
 java.lang.String getString()
           
 java.lang.Class getType()
           
 java.lang.Object getValue()
           
 void removeAttributeListener(AttributeListener l)
           
 void setType(java.lang.Class type)
           
 void setValue(java.lang.Object value)
           
 
Methods inherited from class org.simulare.Named
addNameListener, fireName, fireNameChanged, getName, removeNameListener, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(java.lang.String name,
                 java.lang.Class type,
                 java.lang.Object value)
Method Detail

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)