|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjasi.sim.basic.value.AbstractSimValueType
jasi.sim.basic.value.AbstractComparableObject<Element>
jasi.sim.basic.element.AbstractElementBean
public abstract class AbstractElementBean
Basic implementation of methods and behavior for all simulation elements.
Field Summary |
---|
Fields inherited from interface jasi.sim.basic.element.Element |
---|
COMPARATOR |
Constructor Summary | |
---|---|
protected |
AbstractElementBean()
Construct a simulation element. |
protected |
AbstractElementBean(Id id)
Construct a simulation element for a given ID. |
Method Summary | ||
---|---|---|
protected Element |
acceptDelete()
Delete this simulation element. |
|
int |
compareTo(Element e)
Compares this object with the specified object for order. |
|
Element |
delete()
Delete this simulation element from the simulation. |
|
protected Elements |
elements()
Get the listener for property changes and element manager of this element. |
|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
|
protected
|
get(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()
Returns a hash code value for the object. |
|
boolean |
isDeleted()
Check the existence of this element. |
|
void |
registered(Elements elements)
Set the listener for property changes and element manager of this element. |
|
protected
|
set(java.lang.String property,
T value)
Inform this element's listener about a property change. |
|
void |
setId(Id id)
Set the element's ID. |
|
void |
setKey(SimValue key)
Set this simulation element external key. |
|
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class jasi.sim.basic.value.AbstractComparableObject |
---|
isEQ, isGE, isGT, isLE, isLT, isNE |
Methods inherited from class jasi.sim.basic.value.AbstractSimValueType |
---|
getContent |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected AbstractElementBean()
protected AbstractElementBean(Id id)
id
- The simulation element's ID.Method Detail |
---|
public Element delete() throws DeleteNotSupportedException
delete
in interface Element
DeleteNotSupportedException
- This simulation element can not be deleted.acceptDelete()
protected final Element acceptDelete() throws ElementAlreadyDeletedException
ElementAlreadyDeletedException
- The element has already been deleted previously.public final void registered(Elements elements)
registered
in interface Element
elements
- The property change listener and element manager.protected final Elements elements()
protected final <T> boolean set(java.lang.String property, T value)
T
- The value type.property
- The property that has changed.value
- The new value of that property.
protected final <T> T get(java.lang.String property, T value)
T
- The property type.property
- The property that was requested.value
- The value of that property.
public final int hashCode()
hashCode
in class java.lang.Object
public final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- That object which is compared with this object.
public final int compareTo(Element e)
compareTo
in interface java.lang.Comparable<Element>
compareTo
in class AbstractComparableObject<Element>
e
- The element to be compared.
Comparable.compareTo(Object)
public java.lang.String toString()
toString
in class java.lang.Object
public final boolean isDeleted()
isDeleted
in interface Element
public final void setKey(SimValue key)
setKey
in interface Element
key
- The external key.public final SimValue getKey()
getKey
in interface Element
public final void setId(Id id)
setId
in interface SimObject
id
- The ID.
IdAlreadySetException
- Whenever ID is already set.public final Id getId()
getId
in interface SimObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |