Package repast.simphony.ws
Class DisplayServer
java.lang.Object
repast.simphony.ws.DisplayServer
- All Implemented Interfaces:
ProjectionListener
- Direct Known Subclasses:
DisplayServer2D,DisplayServerGIS
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DisplayDescriptorprotected DisplayData<?>protected intprotected intprotected Layoutprotected static final simphony.util.messages.MessageCenterprotected OutgoingMessageSocketprotected String -
Constructor Summary
ConstructorsConstructorDescriptionDisplayServer(String outgoingAddr, DisplayData<?> data, DisplayDescriptor descriptor, Layout<?, ?> layout, int id) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidvoiddestroy()protected abstract voiddoUpdate()Gets the agents with the specified viz ids.intgetId()abstract voidinit()protected abstract voidmoveObject(Object o) voidInvoked when a projection event occurs.protected abstract voidvoidupdate(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:ProjectionListenerInvoked when a projection event occurs.- Specified by:
projectionEventOccurredin 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()
-