Class GridProjectionDryer2
java.lang.Object
repast.simphony.freezedry.freezedryers.proj.ProjectionDryer<Grid<?>>
repast.simphony.freezedry.freezedryers.proj.GridProjectionDryer2
A projection layer that builds a
ContinuousSpace
.- Author:
- Jerry Vos
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class repast.simphony.freezedry.freezedryers.proj.ProjectionDryer
CONTEXT_LISTENING_KEY, NAME_KEY, PROJ_LISTENING_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Stores the spaces's agent locations, dimensions, adder, and translator.boolean
Returns true forContinuousSpace
s.protected DefaultGrid<?>
instantiate
(Context<?> context, Map<String, Object> properties) Builds aDefaultContinuousSpace
with the projection's name and dimensions.protected void
protected void
Loads the space's agents.Methods inherited from class repast.simphony.freezedry.freezedryers.proj.ProjectionDryer
addProjectionDryer, buildAndAddProjection, getDryer, getProperties
-
Field Details
-
TRANSLATOR_KEY
- See Also:
-
ADDER_KEY
- See Also:
-
CELL_ACCESSOR_KEY
- See Also:
-
AGENT_LOCATIONS_KEY
- See Also:
-
SPACE_DIMENSIONS_KEY
- See Also:
-
SPACE_ORIGIN_KEY
- See Also:
-
-
Constructor Details
-
GridProjectionDryer2
public GridProjectionDryer2()
-
-
Method Details
-
addProperties
Stores the spaces's agent locations, dimensions, adder, and translator.- Specified by:
addProperties
in classProjectionDryer<Grid<?>>
- Parameters:
context
- the ignoredt
- the space to store properties ofmap
- the properties destination
-
loadProperties
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<Grid<?>>
- Parameters:
context
- ignoredproj
- the spaceproperties
- the properties of the space
-
loadAgents
-
instantiate
Builds aDefaultContinuousSpace
with the projection's name and dimensions.- Specified by:
instantiate
in classProjectionDryer<Grid<?>>
- Parameters:
context
- ignoredproperties
- the properties of the space- Returns:
- a created projection
-
handles
Returns true forContinuousSpace
s.- Specified by:
handles
in classProjectionDryer<Grid<?>>
- Parameters:
type
- the type of the projection- Returns:
- if the implementation handles the given type
-