public interface IOAVState
Modifier and Type | Method and Description |
---|---|
void |
addAttributeValue(java.lang.Object object,
OAVAttributeType attribute,
java.lang.Object value)
Add an attribute of an object to the given value.
|
void |
addExternalObjectUsage(java.lang.Object id,
java.lang.Object external)
Add an external usage of a state object.
|
void |
addJavaRootObject(java.lang.Object object)
Add a Java object as root object.
|
void |
addStateListener(IOAVStateListener listener,
boolean bunch)
Add a new state listener.
|
void |
addSubstate(IOAVState substate)
Add a substate.
|
boolean |
containsKey(java.lang.Object object,
OAVAttributeType attribute,
java.lang.Object key)
Test if a key is contained in the map attribute.
|
boolean |
containsObject(java.lang.Object object)
Test if the state contains a specific object.
|
java.lang.Object |
createObject(OAVObjectType type)
Create an object.
|
java.lang.Object |
createRootObject(OAVObjectType type)
Create a root object.
|
void |
dispose()
Dispose the state.
|
void |
dropObject(java.lang.Object object)
Drop an object from the state.
|
boolean |
equals(java.lang.Object a,
java.lang.Object b)
Test if two values are equal
according to current identity/equality
settings.
|
void |
expungeStaleObjects()
Expunge stale objects.
|
java.util.List |
findCycle(java.util.Collection objects)
Find a cycle in a given set of objects.
|
java.util.Collection |
getAttributeKeys(java.lang.Object object,
OAVAttributeType attribute)
Get the keys of an attribute of an object.
|
java.lang.Object |
getAttributeValue(java.lang.Object object,
OAVAttributeType attribute)
Get an attribute value of an object.
|
java.lang.Object |
getAttributeValue(java.lang.Object object,
OAVAttributeType attribute,
java.lang.Object key)
Get an attribute value of an object.
|
java.util.Collection |
getAttributeValues(java.lang.Object object,
OAVAttributeType attribute)
Get the values of an attribute of an object.
|
java.util.Iterator |
getDeepObjects()
Get all objects in the state and its substates.
|
java.util.Iterator |
getObjects()
Get all objects in the state.
|
IProfiler |
getProfiler()
Get the profiler.
|
java.util.Collection |
getReferencingObjects(java.lang.Object value)
Get those objects referencing a given object.
|
java.util.Iterator |
getRootObjects()
Get the root objects of the state.
|
int |
getSize()
Get the number of objects in the state.
|
IOAVState[] |
getSubstates()
Get the substates.
|
jadex.commons.concurrent.ISynchronizator |
getSynchronizator()
Get the synchronizator (if any).
|
OAVObjectType |
getType(java.lang.Object object)
Get the type of an object.
|
OAVTypeModel |
getTypeModel()
Get the type model.
|
java.util.Collection |
getUnreferencedObjects()
Get all unreferenced objects.
|
boolean |
isIdentifier(java.lang.Object object)
Test if the object represents an identifier.
|
boolean |
isJavaIdentity()
Flag indicating that java objects are
stored by identity instead of equality.
|
void |
notifyEventListeners()
Throw collected events and notify the listeners.
|
void |
removeAttributeValue(java.lang.Object object,
OAVAttributeType attribute,
java.lang.Object value)
Remove an attribute of an object to the given value.
|
void |
removeExternalObjectUsage(java.lang.Object id,
java.lang.Object external)
Remove an external usage of a state object.
|
void |
removeJavaRootObject(java.lang.Object object)
Remove a Java object from root objects.
|
void |
removeStateListener(IOAVStateListener listener)
Remove a state listener.
|
void |
setAttributeValue(java.lang.Object object,
OAVAttributeType attribute,
java.lang.Object value)
Set an attribute of an object to the given value.
|
void |
setProfiler(IProfiler profiler)
Set the profiler.
|
void |
setSynchronizator(jadex.commons.concurrent.ISynchronizator synchronizator)
Set the synchronizator.
|
OAVTypeModel getTypeModel()
void dispose()
java.lang.Object createObject(OAVObjectType type)
type
- The object type (null for defining meta types).java.lang.Object createRootObject(OAVObjectType type)
void dropObject(java.lang.Object object)
object
- The identifier of the object to remove.void addJavaRootObject(java.lang.Object object)
object
- The Java object.void removeJavaRootObject(java.lang.Object object)
object
- The Java object.boolean containsObject(java.lang.Object object)
object
- The object identifier.boolean isIdentifier(java.lang.Object object)
object
- The suspected object identifier.OAVObjectType getType(java.lang.Object object)
object
- The object identifier.java.util.Iterator getObjects()
java.util.Iterator getDeepObjects()
java.util.Iterator getRootObjects()
int getSize()
java.util.Collection getUnreferencedObjects()
java.util.List findCycle(java.util.Collection objects)
java.util.Collection getReferencingObjects(java.lang.Object value)
void addExternalObjectUsage(java.lang.Object id, java.lang.Object external)
id
- The oav object id.external
- The user object.void removeExternalObjectUsage(java.lang.Object id, java.lang.Object external)
id
- The oav object id.external
- The state external object.java.lang.Object getAttributeValue(java.lang.Object object, OAVAttributeType attribute)
object
- The identifier of the object.attribute
- The attribute identifier.void setAttributeValue(java.lang.Object object, OAVAttributeType attribute, java.lang.Object value)
object
- The identifier of the object.attribute
- The attribute identifier.value
- The value (basic, object id or java object).java.util.Collection getAttributeValues(java.lang.Object object, OAVAttributeType attribute)
object
- The identifier of the object.attribute
- The attribute identifier.java.util.Collection getAttributeKeys(java.lang.Object object, OAVAttributeType attribute)
object
- The identifier of the object.attribute
- The attribute identifier.java.lang.Object getAttributeValue(java.lang.Object object, OAVAttributeType attribute, java.lang.Object key)
object
- The identifier of the object.attribute
- The attribute identifier.key
- The key.boolean containsKey(java.lang.Object object, OAVAttributeType attribute, java.lang.Object key)
object
- The identifier of the object.attribute
- The attribute identifier.key
- The key.void addAttributeValue(java.lang.Object object, OAVAttributeType attribute, java.lang.Object value)
object
- The identifier of the object.attribute
- The attribute identifier.value
- The value (basic, object id or java object).void removeAttributeValue(java.lang.Object object, OAVAttributeType attribute, java.lang.Object value)
object
- The identifier of the object.attribute
- The attribute identifier.value
- The value (basic, object id or java object).void addStateListener(IOAVStateListener listener, boolean bunch)
listener
- The state listener.bunch
- True, for adding a bunch listener.void removeStateListener(IOAVStateListener listener)
listener
- The state listener.void notifyEventListeners()
void expungeStaleObjects()
void setSynchronizator(jadex.commons.concurrent.ISynchronizator synchronizator)
jadex.commons.concurrent.ISynchronizator getSynchronizator()
IProfiler getProfiler()
void setProfiler(IProfiler profiler)
void addSubstate(IOAVState substate)
IOAVState[] getSubstates()
boolean isJavaIdentity()
boolean equals(java.lang.Object a, java.lang.Object b)