Package repast.simphony.data2.engine
Class FileSinkControllerActionIO
- java.lang.Object
-
- repast.simphony.scenario.AbstractControllerActionIO<T>
-
- repast.simphony.scenario.AbstractDescriptorControllerActionIO<FileSinkComponentControllerAction,FileSinkDescriptor>
-
- repast.simphony.data2.engine.FileSinkControllerActionIO
-
- All Implemented Interfaces:
ControllerActionIO
public class FileSinkControllerActionIO extends AbstractDescriptorControllerActionIO<FileSinkComponentControllerAction,FileSinkDescriptor>
- Author:
- Nick Collier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileSinkControllerActionIO.FileSinkActionLoader
-
Field Summary
Fields Modifier and Type Field Description static String
SERIALIZATION_ID
-
Fields inherited from class repast.simphony.scenario.AbstractControllerActionIO
actionClass
-
-
Constructor Summary
Constructors Constructor Description FileSinkControllerActionIO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionLoader
getActionLoader(File actionFile, Object contextID)
Gets the ActionLoader used to load the saved action.String
getSerializationID()
Gets the id for this ControllerActionIO to be used in loading and saving a ControllerAction.-
Methods inherited from class repast.simphony.scenario.AbstractDescriptorControllerActionIO
getActionSaver
-
Methods inherited from class repast.simphony.scenario.AbstractControllerActionIO
getActionClass
-
-
-
-
Field Detail
-
SERIALIZATION_ID
public static final String SERIALIZATION_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSerializationID
public String getSerializationID()
Description copied from interface:ControllerActionIO
Gets the id for this ControllerActionIO to be used in loading and saving a ControllerAction. This id associates the saved action with this ControllerActionIO.- Specified by:
getSerializationID
in interfaceControllerActionIO
- Overrides:
getSerializationID
in classAbstractControllerActionIO<FileSinkComponentControllerAction>
- Returns:
- the id for this ControllerActionIO to be used in loading and saving a ControllerAction
-
getActionLoader
public ActionLoader getActionLoader(File actionFile, Object contextID)
Description copied from interface:ControllerActionIO
Gets the ActionLoader used to load the saved action.- Parameters:
actionFile
- the File containing the serialized datacontextID
- the context the context to load the action into- Returns:
- the ActionLoader used to load the saved action.
-
-