Class GeneralDataView2D
- java.lang.Object
-
- jadex.extension.envsupport.dataview.GeneralDataView2D
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
dirty
Flag whether the view needs updatingprotected java.lang.Object
monitor
Internal lockprotected java.lang.Object[]
objects
The current objectsprotected Space2D
space
The 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.String
getType()
Returns the type of the view.void
init(IEnvironmentSpace space, java.util.Map props)
Init the space.void
update(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:
getObjects
in interfaceIDataView
- Returns:
- list of objects
-
update
public void update(IEnvironmentSpace space)
Updates the view.
-
-