Class ContinuousProjectionDryer
java.lang.Object
repast.simphony.freezedry.freezedryers.proj.ProjectionDryer<ContinuousSpace<?>>
repast.simphony.freezedry.freezedryers.proj.ContinuousProjectionDryer
A projection layer that builds a
ContinuousSpace.- Author:
- Jerry Vos
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 voidaddProperties(Context<?> context, ContinuousSpace<?> t, Map<String, Object> map) Stores the spaces's agent locations, dimensions, adder, and translator.booleanReturns true forContinuousSpaces.protected ContinuousSpace<?>instantiate(Context<?> context, Map<String, Object> properties) Builds aDefaultContinuousSpacewith the projection's name and dimensions.protected voidloadAgents(Context<?> context, ContinuousSpace proj, Map<String, Object> properties) protected voidloadProperties(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 Details
-
TRANSLATOR_KEY
- See Also:
-
ADDER_KEY
- See Also:
-
AGENT_LOCATIONS_KEY
- See Also:
-
SPACE_DIMENSIONS_KEY
- See Also:
-
SPACE_ORIGIN_KEY
- See Also:
-
-
Constructor Details
-
ContinuousProjectionDryer
public ContinuousProjectionDryer()
-
-
Method Details
-
addProperties
Stores the spaces's agent locations, dimensions, adder, and translator.- Specified by:
addPropertiesin 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:
loadPropertiesin classProjectionDryer<ContinuousSpace<?>>- Parameters:
context- ignoredproj- the spaceproperties- the properties of the space
-
loadAgents
-
instantiate
Builds aDefaultContinuousSpacewith the projection's name and dimensions.- Specified by:
instantiatein classProjectionDryer<ContinuousSpace<?>>- Parameters:
context- ignoredproperties- the properties of the space- Returns:
- a created projection
-
handles
Returns true forContinuousSpaces.- Specified by:
handlesin classProjectionDryer<ContinuousSpace<?>>- Parameters:
type- the type of the projection- Returns:
- if the implementation handles the given type
-