|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jasi.sim.user.util.State
public class State
This class allows to access the state of a simulation elements and events. The state of an element or event can be set by an archive reader or got by an archive writer.
Constructor Summary | |
---|---|
State(java.lang.Object object)
Constructor of StringState. |
Method Summary | |
---|---|
java.util.Map<java.beans.PropertyDescriptor,java.lang.Object> |
get()
Get the state of the enclosed object. |
void |
put(java.lang.String name,
java.lang.Object value)
Set the value of an attribute/property of the enclosed object. |
void |
put(java.lang.String name,
java.lang.Object[] values)
Set the value of an array attribute/indexed property of the enclosed object. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public State(java.lang.Object object) throws StateException
object
- The enclosed object, which state is accessed.
StateException
- An error when creating a state object.Method Detail |
---|
public final java.util.Map<java.beans.PropertyDescriptor,java.lang.Object> get() throws StateException
StateException
- An error when creating a state map.public final void put(java.lang.String name, java.lang.Object value) throws StateException
name
- The property's name.value
- The property's value.
StateException
- An error, when a value is put into state.public final void put(java.lang.String name, java.lang.Object[] values) throws StateException
name
- The array-attribute's name.values
- The array-attribute's values.
StateException
- An error, when value list is put into state.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |