|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjasi.sim.basic.element.ElementAdapter
public final class ElementAdapter
Basic implementation of methods and behavior for all simulation elements.
This class can be used, when simulation can not extend the class
ElementBean
AbstractElementBean| Constructor Summary | |
|---|---|
ElementAdapter()
Construct a simulation element. |
|
ElementAdapter(Element element,
Id id)
Construct a simulation element. |
|
| Method Summary | ||
|---|---|---|
Element |
acceptDelete(Element element)
Delete that simulation element. |
|
int |
compareTo(Element element,
Element e)
Compares that object with the specified object for order. |
|
Elements |
elements()
Get the listener for property changes and element manager of this element. |
|
boolean |
equals(Element element,
java.lang.Object o)
Indicates whether some other object is "equal to" that element. |
|
|
get(Element element,
java.lang.String property,
T value)
Inform this element's listener about a property request. |
|
Id |
getId()
Retrieve the element's ID. |
|
SimValue |
getKey()
Returns this simulation element external key. |
|
int |
hashCode(Element element)
Returns a hash code value for the object. |
|
boolean |
isDeleted()
Check the existence of this element. |
|
|
set(Element element,
java.lang.String property,
T value)
Inform that element's listener about a property change. |
|
void |
setElements(Elements elements)
Set the listener for property changes and element manager of this element. |
|
void |
setId(Element element,
Id id)
Set the element's ID. |
|
void |
setKey(Element element,
SimValue key)
Set this simulation element external key. |
|
java.lang.String |
toString(Element element)
Returns a string representation of this object. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElementAdapter()
public ElementAdapter(Element element,
Id id)
element - That element.id - The simulation element's ID.| Method Detail |
|---|
public Element acceptDelete(Element element)
throws ElementAlreadyDeletedException
element - The simulation element.
ElementAlreadyDeletedException - The element has already been deleted previously.public void setElements(Elements elements)
elements - The property change listener and element manager.public Elements elements()
public <T> boolean set(Element element,
java.lang.String property,
T value)
T - The value type.element - That element.property - The property that has changed.value - The new value of that property.
public <T> T get(Element element,
java.lang.String property,
T value)
T - The property type.element - That element.property - The property that was requested.value - The value of that property.
public int hashCode(Element element)
element - That element.
public boolean equals(Element element,
java.lang.Object o)
element - That element.o - That object which is compared with this object.
public int compareTo(Element element,
Element e)
element - That element.e - The element to be compared.
public java.lang.String toString(Element element)
element - That element.
public boolean isDeleted()
public void setKey(Element element,
SimValue key)
element - That element.key - The external key.
java.lang.IllegalStateException - Whenever key is already set.public SimValue getKey()
public void setId(Element element,
Id id)
element - That element.id - The ID.public Id getId()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||