net.simplace.sim.control.FWSimulationController
SimulationController initializes the project part of the simulations. It can be asked for
- project mode of simulation net.simplace.sim.FWSimProject.PROJECT_MODE.
- field map of project data
- java.util.Map of the net.simplace.sim.FWSimProjects with name as key.
- net.simplace.sim.util.FWSimVariable.CONTENT_TYPE of the project information (res or sim)
SimulationController can perform the reading of the configuration either from simple xml
or resources (XML, Database, CSV).
public class FWSimulationController {
// Public Constructors
public FWSimulationController(FWSimSession aSession)
throws SimProjectException;
// Constants
protected final FWSimSession iSession;
// Protected Instance Variables
protected LinkedHashMap iFieldMap;
protected FWSimProject.PROJECT_MODE iProjectMode;
// Public Instance Methods public void
initProjectData(
FileData aProjectXMLFile)
throws
SimProjectException;
Default constructor from XML
first step: create structure of the data to be placed in the database
second step: prepare the database
- aProjectXMLFile {@link Element} containing project information - if null test-project will be created
- aSession {@link FWSimSession}
public boolean iterate(String aProjectID);
public void
generate(String aProjectID);
generates the simulations for the session
public void finalize(); // Overrides java.lang.Object
public Set getProjectIDs();
returns the linked map of all projects
public
FWSimProject getProject(String aProject);
returns newly created SimProject for the given ID
public HashMap getFieldMap();
returns the field map of all projects
public String getCurrentProjectID();
public int getMaxIterationCount();
}
Returned by: net.simplace.sim.FWSimSession.getProjectControler()