Package repast.simphony.ws
Class DisplayServer
- java.lang.Object
-
- repast.simphony.ws.DisplayServer
-
- All Implemented Interfaces:
ProjectionListener
- Direct Known Subclasses:
DisplayServer2D
,DisplayServerGIS
public abstract class DisplayServer extends Object implements ProjectionListener
-
-
Field Summary
Fields Modifier and Type Field Description protected DisplayDescriptor
descriptor
protected DisplayData<?>
displayData
protected int
id
protected int
idCounter
protected Layout
layout
protected static simphony.util.messages.MessageCenter
LOG
protected OutgoingMessageSocket
outgoing
protected String
outgoingAddr
-
Constructor Summary
Constructors Constructor Description DisplayServer(String outgoingAddr, DisplayData<?> data, DisplayDescriptor descriptor, Layout<?,?> layout, int id)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
addObject(Object o)
void
destroy()
protected abstract void
doUpdate()
abstract List<Pair<Integer,Object>>
getAgents(List<Integer> ids)
Gets the agents with the specified viz ids.int
getId()
abstract void
init()
protected abstract void
moveObject(Object o)
void
projectionEventOccurred(ProjectionEvent evt)
Invoked when a projection event occurs.protected abstract void
removeObject(Object o)
void
update(boolean force)
-
-
-
Field Detail
-
LOG
protected static final simphony.util.messages.MessageCenter LOG
-
outgoingAddr
protected String outgoingAddr
-
displayData
protected DisplayData<?> displayData
-
descriptor
protected DisplayDescriptor descriptor
-
outgoing
protected OutgoingMessageSocket outgoing
-
layout
protected Layout layout
-
idCounter
protected int idCounter
-
id
protected int id
-
-
Constructor Detail
-
DisplayServer
public DisplayServer(String outgoingAddr, DisplayData<?> data, DisplayDescriptor descriptor, Layout<?,?> layout, int id)
-
-
Method Detail
-
projectionEventOccurred
public void projectionEventOccurred(ProjectionEvent evt)
Description copied from interface:ProjectionListener
Invoked when a projection event occurs.- Specified by:
projectionEventOccurred
in interfaceProjectionListener
- Parameters:
evt
- the object describing the event
-
addObject
protected abstract void addObject(Object o)
-
removeObject
protected abstract void removeObject(Object o)
-
moveObject
protected abstract void moveObject(Object o)
-
init
public abstract void init()
-
getAgents
public abstract List<Pair<Integer,Object>> getAgents(List<Integer> ids)
Gets the agents with the specified viz ids.- Parameters:
ids
-- Returns:
- the list of agents with the specified ids.
-
doUpdate
protected abstract void doUpdate()
-
update
public void update(boolean force)
-
destroy
public void destroy()
-
getId
public int getId()
-
-