Class ContinuousProjectionDryer
- java.lang.Object
-
- repast.simphony.freezedry.freezedryers.proj.ProjectionDryer<ContinuousSpace<?>>
-
- repast.simphony.freezedry.freezedryers.proj.ContinuousProjectionDryer
-
public class ContinuousProjectionDryer extends ProjectionDryer<ContinuousSpace<?>>
A projection layer that builds aContinuousSpace
.- Author:
- Jerry Vos
-
-
Field Summary
Fields Modifier and Type Field Description static String
ADDER_KEY
static String
AGENT_LOCATIONS_KEY
static String
SPACE_DIMENSIONS_KEY
static String
SPACE_ORIGIN_KEY
static String
TRANSLATOR_KEY
-
Fields inherited from class repast.simphony.freezedry.freezedryers.proj.ProjectionDryer
CONTEXT_LISTENING_KEY, NAME_KEY, PROJ_LISTENING_KEY
-
-
Constructor Summary
Constructors Constructor Description ContinuousProjectionDryer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addProperties(Context<?> context, ContinuousSpace<?> t, Map<String,Object> map)
Stores the spaces's agent locations, dimensions, adder, and translator.boolean
handles(Class<?> type)
Returns true forContinuousSpace
s.protected ContinuousSpace<?>
instantiate(Context<?> context, Map<String,Object> properties)
Builds aDefaultContinuousSpace
with the projection's name and dimensions.protected void
loadAgents(Context<?> context, ContinuousSpace proj, Map<String,Object> properties)
protected void
loadProperties(Context<?> context, ContinuousSpace<?> proj, Map<String,Object> properties)
Loads the space's agents.-
Methods inherited from class repast.simphony.freezedry.freezedryers.proj.ProjectionDryer
addProjectionDryer, buildAndAddProjection, getDryer, getProperties
-
-
-
-
Field Detail
-
TRANSLATOR_KEY
public static final String TRANSLATOR_KEY
- See Also:
- Constant Field Values
-
ADDER_KEY
public static final String ADDER_KEY
- See Also:
- Constant Field Values
-
AGENT_LOCATIONS_KEY
public static final String AGENT_LOCATIONS_KEY
- See Also:
- Constant Field Values
-
SPACE_DIMENSIONS_KEY
public static final String SPACE_DIMENSIONS_KEY
- See Also:
- Constant Field Values
-
SPACE_ORIGIN_KEY
public static final String SPACE_ORIGIN_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
addProperties
protected void addProperties(Context<?> context, ContinuousSpace<?> t, Map<String,Object> map)
Stores the spaces's agent locations, dimensions, adder, and translator.- Specified by:
addProperties
in classProjectionDryer<ContinuousSpace<?>>
- Parameters:
context
- the ignoredt
- the space to store properties ofmap
- the properties destination
-
loadProperties
protected void loadProperties(Context<?> context, ContinuousSpace<?> proj, Map<String,Object> properties)
Loads the space's agents. This also loads the space's adder, translator if they are stored in the given properties.- Overrides:
loadProperties
in classProjectionDryer<ContinuousSpace<?>>
- Parameters:
context
- ignoredproj
- the spaceproperties
- the properties of the space
-
loadAgents
protected void loadAgents(Context<?> context, ContinuousSpace proj, Map<String,Object> properties)
-
instantiate
protected ContinuousSpace<?> instantiate(Context<?> context, Map<String,Object> properties)
Builds aDefaultContinuousSpace
with the projection's name and dimensions.- Specified by:
instantiate
in classProjectionDryer<ContinuousSpace<?>>
- Parameters:
context
- ignoredproperties
- the properties of the space- Returns:
- a created projection
-
handles
public boolean handles(Class<?> type)
Returns true forContinuousSpace
s.- Specified by:
handles
in classProjectionDryer<ContinuousSpace<?>>
- Parameters:
type
- the type of the projection- Returns:
- if the implementation handles the given type
-
-