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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class repast.simphony.freezedry.freezedryers.proj.ProjectionDryer
CONTEXT_LISTENING_KEY, NAME_KEY, PROJ_LISTENING_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidStores the spaces's agent locations, dimensions, adder, and translator.booleanReturns true forContinuousSpaces.protected DefaultGrid<?>instantiate(Context<?> context, Map<String, Object> properties) Builds aDefaultContinuousSpacewith the projection's name and dimensions.protected voidprotected voidLoads 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:
addPropertiesin 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:
loadPropertiesin classProjectionDryer<Grid<?>>- Parameters:
context- ignoredproj- the spaceproperties- the properties of the space
-
loadAgents
-
instantiate
Builds aDefaultContinuousSpacewith the projection's name and dimensions.- Specified by:
instantiatein classProjectionDryer<Grid<?>>- Parameters:
context- ignoredproperties- the properties of the space- Returns:
- a created projection
-
handles
Returns true forContinuousSpaces.- Specified by:
handlesin classProjectionDryer<Grid<?>>- Parameters:
type- the type of the projection- Returns:
- if the implementation handles the given type
-