Package repast.simphony.ws
Class DisplayServer
java.lang.Object
repast.simphony.ws.DisplayServer
- All Implemented Interfaces:
ProjectionListener
- Direct Known Subclasses:
DisplayServer2D
,DisplayServerGIS
-
Field Summary
Modifier and TypeFieldDescriptionprotected DisplayDescriptor
protected DisplayData<?>
protected int
protected int
protected Layout
protected static final simphony.util.messages.MessageCenter
protected OutgoingMessageSocket
protected String
-
Constructor Summary
ConstructorDescriptionDisplayServer
(String outgoingAddr, DisplayData<?> data, DisplayDescriptor descriptor, Layout<?, ?> layout, int id) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
void
destroy()
protected abstract void
doUpdate()
Gets the agents with the specified viz ids.int
getId()
abstract void
init()
protected abstract void
moveObject
(Object o) void
Invoked when a projection event occurs.protected abstract void
void
update
(boolean force)
-
Field Details
-
LOG
protected static final simphony.util.messages.MessageCenter LOG -
outgoingAddr
-
displayData
-
descriptor
-
outgoing
-
layout
-
idCounter
protected int idCounter -
id
protected int id
-
-
Constructor Details
-
DisplayServer
public DisplayServer(String outgoingAddr, DisplayData<?> data, DisplayDescriptor descriptor, Layout<?, ?> layout, int id)
-
-
Method Details
-
projectionEventOccurred
Description copied from interface:ProjectionListener
Invoked when a projection event occurs.- Specified by:
projectionEventOccurred
in interfaceProjectionListener
- Parameters:
evt
- the object describing the event
-
addObject
-
removeObject
-
moveObject
-
init
public abstract void init() -
getAgents
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()
-