|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.commons.SimplePropertyObject
jadex.commons.meta.TypedPropertyObject
jadex.application.space.envsupport.environment.SynchronizedPropertyObject
jadex.application.space.envsupport.environment.SpaceObject
public class SpaceObject
Default implementation of a space object.
| Field Summary | |
|---|---|
protected SimpleValueFetcher |
fetcher
The fetcher. |
protected Object |
id
The object's ID. |
protected AbstractEnvironmentSpace |
space
The space. |
protected MultiCollection |
tasklisteners
The task listeners. |
protected Map |
tasks
The object's tasks. |
protected String |
typename
The object's typename. |
| Fields inherited from class jadex.application.space.envsupport.environment.SynchronizedPropertyObject |
|---|
monitor |
| Fields inherited from class jadex.commons.SimplePropertyObject |
|---|
pcs, properties |
| Fields inherited from interface jadex.application.space.envsupport.environment.ISpaceObject |
|---|
PROPERTY_OWNER |
| Constructor Summary | |
|---|---|
SpaceObject()
Bean constructor. |
|
SpaceObject(Object id,
MObjectType type,
Map properties,
List tasks,
Object monitor,
AbstractEnvironmentSpace space)
Creates a new EnvironmentObject. |
|
| Method Summary | |
|---|---|
void |
addTask(IObjectTask task)
Adds a new task for the object. |
void |
addTaskListener(Object taskid,
IResultListener listener)
Add a result listener to a task. |
void |
clearTasks()
Removes all tasks from the object. |
Object |
getId()
Get the objects id. |
Map |
getProperties()
Bean accessor. |
Object |
getProperty(String name)
Returns a property. |
IObjectTask |
getTask(Object id)
Get a specific task. |
Collection |
getTasks()
Returns all tasks of the object for introspection. |
String |
getType()
Returns the type of the object. |
void |
removeTask(Object taskid,
Exception e)
Removes a task from the object. |
void |
removeTaskListener(Object taskid,
IResultListener listener)
Remove a result listener from a task. |
void |
setId(Object id)
Set the id of the object. |
void |
setProperty(String name,
Object value)
Only for debugging. |
void |
setType(String type)
Set the type of the object. |
String |
toString()
Get the string representation. |
void |
updateObject(IEnvironmentSpace space,
long progress,
IClockService clock)
Updates the object to the current time. |
| Methods inherited from class jadex.application.space.envsupport.environment.SynchronizedPropertyObject |
|---|
addPropertyChangeListener, getMonitor, getPropertyNames, hasProperty, removePropertyChangeListener |
| Methods inherited from class jadex.commons.meta.TypedPropertyObject |
|---|
getMetaData, getMetaDatas |
| Methods inherited from class jadex.commons.SimplePropertyObject |
|---|
setProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jadex.commons.meta.ITypedPropertyObject |
|---|
getMetaData, getMetaDatas |
| Methods inherited from interface jadex.commons.IPropertyObject |
|---|
getPropertyNames, hasProperty |
| Field Detail |
|---|
protected Object id
protected String typename
protected Map tasks
protected MultiCollection tasklisteners
protected SimpleValueFetcher fetcher
protected AbstractEnvironmentSpace space
| Constructor Detail |
|---|
public SpaceObject(Object id,
MObjectType type,
Map properties,
List tasks,
Object monitor,
AbstractEnvironmentSpace space)
objectId - the object's IDtypename - the object's typeproperties - initial properties (may be null)propertiesMeta - the meta data of the propertiestasks - initial task list (may be null)public SpaceObject()
| Method Detail |
|---|
public Object getProperty(String name)
getProperty in interface IPropertyObjectgetProperty in class SynchronizedPropertyObjectname - name of the property
public void setProperty(String name,
Object value)
setProperty in interface IPropertyObjectsetProperty in class SynchronizedPropertyObjectname - name of the propertyvalue - value of the propertypublic Object getId()
getId in interface ISpaceObjectpublic void setId(Object id)
public String getType()
getType in interface ISpaceObjectpublic void setType(String type)
public void addTask(IObjectTask task)
task - new task
public void removeTask(Object taskid,
Exception e)
task - The task.public Collection getTasks()
public IObjectTask getTask(Object id)
id - The task id.
public void clearTasks()
public void addTaskListener(Object taskid,
IResultListener listener)
public void removeTaskListener(Object taskid,
IResultListener listener)
public void updateObject(IEnvironmentSpace space,
long progress,
IClockService clock)
progress - The time that has passed according to the environment executor.clock - The clock service.public Map getProperties()
getProperties in class SimplePropertyObjectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||