Class GeneralDataView2D
- java.lang.Object
-
- jadex.extension.envsupport.dataview.GeneralDataView2D
-
-
Field Summary
Fields Modifier and Type Field Description protected booleandirtyFlag whether the view needs updatingprotected java.lang.ObjectmonitorInternal lockprotected java.lang.Object[]objectsThe current objectsprotected Space2DspaceThe space the view is connected to-
Fields inherited from interface jadex.extension.envsupport.dataview.IDataView
SIMPLE_VIEW_2D
-
-
Constructor Summary
Constructors Constructor Description GeneralDataView2D()Creates a general 2D view that presents all Objects in a Space2D to the observer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]getObjects()Returns a list of objects in this viewjava.lang.StringgetType()Returns the type of the view.voidinit(IEnvironmentSpace space, java.util.Map props)Init the space.voidupdate(IEnvironmentSpace space)Updates the view.
-
-
-
Field Detail
-
space
protected Space2D space
The space the view is connected to
-
objects
protected java.lang.Object[] objects
The current objects
-
dirty
protected boolean dirty
Flag whether the view needs updating
-
monitor
protected java.lang.Object monitor
Internal lock
-
-
Method Detail
-
init
public void init(IEnvironmentSpace space, java.util.Map props)
Init the space.
-
getType
public java.lang.String getType()
Returns the type of the view.
-
getObjects
public java.lang.Object[] getObjects()
Returns a list of objects in this view- Specified by:
getObjectsin interfaceIDataView- Returns:
- list of objects
-
update
public void update(IEnvironmentSpace space)
Updates the view.
-
-