jadex.application.space.envsupport.dataview
Class GeneralDataView2D

java.lang.Object
  extended by jadex.application.space.envsupport.dataview.GeneralDataView2D
All Implemented Interfaces:
IDataView

public class GeneralDataView2D
extends Object
implements IDataView

A general 2D view that presents all Objects in a Space2D to the observer.


Field Summary
protected  boolean dirty
          Flag whether the view needs updating
protected  Object monitor
          Internal lock
protected  Object[] objects
          The current objects
protected  Space2D space
          The space the view is connected to
 
Fields inherited from interface jadex.application.space.envsupport.dataview.IDataView
SIMPLE_VIEW_2D
 
Constructor Summary
GeneralDataView2D()
          Creates a general 2D view that presents all Objects in a Space2D to the observer.
 
Method Summary
 Object[] getObjects()
          Returns a list of objects in this view
 String getType()
          Returns the type of the view.
 void init(IEnvironmentSpace space, Map props)
          Init the space.
 void update(IEnvironmentSpace space)
          Updates the view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

space

protected Space2D space
The space the view is connected to


objects

protected Object[] objects
The current objects


dirty

protected boolean dirty
Flag whether the view needs updating


monitor

protected Object monitor
Internal lock

Constructor Detail

GeneralDataView2D

public GeneralDataView2D()
Creates a general 2D view that presents all Objects in a Space2D to the observer.

Method Detail

init

public void init(IEnvironmentSpace space,
                 Map props)
Init the space.

Specified by:
init in interface IDataView

getType

public String getType()
Returns the type of the view.

Specified by:
getType in interface IDataView
Returns:
type of the view

getObjects

public Object[] getObjects()
Returns a list of objects in this view

Specified by:
getObjects in interface IDataView
Returns:
list of objects

update

public void update(IEnvironmentSpace space)
Updates the view.

Specified by:
update in interface IDataView
Parameters:
space - the space of the view


Copyright © 2010. All Rights Reserved.