Package repast.simphony.ws.gis
Class DisplayServerGIS
- java.lang.Object
-
- repast.simphony.ws.DisplayServer
-
- repast.simphony.ws.gis.DisplayServerGIS
-
- All Implemented Interfaces:
ProjectionListener
public class DisplayServerGIS extends DisplayServer
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<Class<?>,StyledLayerGIS>
classStyleMap
protected Geography<?>
geography
protected Map<Network<?>,StyledNetLayerGIS>
networkStyleMap
-
Fields inherited from class repast.simphony.ws.DisplayServer
descriptor, displayData, id, idCounter, layout, LOG, outgoing, outgoingAddr
-
-
Constructor Summary
Constructors Constructor Description DisplayServerGIS(String outgoingAddr, DisplayData<?> data, DisplayDescriptor descriptor, Layout layout, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addObject(Object obj)
void
doUpdate()
protected StyledLayerGIS
findLayer(Object obj)
List<Pair<Integer,Object>>
getAgents(List<Integer> ids)
Gets the agents with the specified viz ids.void
init()
protected void
moveObject(Object obj)
void
registerNetworkStyle(Network<?> network, ServerNetStyleGIS style)
void
registerStyle(Class<?> clazz, ServerStyleGIS style)
protected void
removeObject(Object obj)
-
Methods inherited from class repast.simphony.ws.DisplayServer
destroy, getId, projectionEventOccurred, update
-
-
-
-
Field Detail
-
classStyleMap
protected Map<Class<?>,StyledLayerGIS> classStyleMap
-
networkStyleMap
protected Map<Network<?>,StyledNetLayerGIS> networkStyleMap
-
geography
protected Geography<?> geography
-
-
Constructor Detail
-
DisplayServerGIS
public DisplayServerGIS(String outgoingAddr, DisplayData<?> data, DisplayDescriptor descriptor, Layout layout, int id)
-
-
Method Detail
-
init
public void init()
- Specified by:
init
in classDisplayServer
-
registerStyle
public void registerStyle(Class<?> clazz, ServerStyleGIS style)
-
registerNetworkStyle
public void registerNetworkStyle(Network<?> network, ServerNetStyleGIS style)
-
findLayer
protected StyledLayerGIS findLayer(Object obj)
-
addObject
protected void addObject(Object obj)
- Specified by:
addObject
in classDisplayServer
-
removeObject
protected void removeObject(Object obj)
- Specified by:
removeObject
in classDisplayServer
-
moveObject
protected void moveObject(Object obj)
- Specified by:
moveObject
in classDisplayServer
-
doUpdate
public void doUpdate()
- Specified by:
doUpdate
in classDisplayServer
-
getAgents
public List<Pair<Integer,Object>> getAgents(List<Integer> ids)
Description copied from class:DisplayServer
Gets the agents with the specified viz ids.- Specified by:
getAgents
in classDisplayServer
- Returns:
- the list of agents with the specified ids.
-
-