net.simplace.simulation.control.FWSimulationGenerator
The simulation generator creates for existing project ( net.simplace.simulation.FWSimProject )
a range of simulations ( net.simplace.simulation.FWSimSimulation ). This abstract class has 2
implementations:
net.simplace.simulation.control.generators.SimpleSimulationGenerator: Final class used for net.simplace.simulation.FWSimProject.PROJECT_MODE.SIMULATION and
net.simplace.simulation.util.FWSimVariable.CONTENT_TYPE.sim. It just delivers the (few) simulations in
the selected project.
net.simplace.simulation.control.generators.DefaultSimulationGenerator: Class used for all net.simplace.simulation.FWSimProject.PROJECT_MODEs but
net.simplace.simulation.util.FWSimVariable.CONTENT_TYPE.res. Use this class to override and create own
SimGenerator plug-ins.
Method FWSimulationGenerator has to be implemented in extending classes.
public abstract class FWSimulationGenerator extends FWSimulationControlContainer {
// Public Constructors
public FWSimulationGenerator();
// Protected Constructors
protected FWSimulationGenerator(Element aControlContainerElement,
FWSimSession aSession, HashMap aFieldMap, FWSimVariable.CONTENT_TYPE
aContentType);
// Protected Instance Variables
protected HashMap iSimulationsMap;
protected FWSimVariable.CONTENT_TYPE iContentType;
// Class Methods public static
FWSimulationGenerator createSimulationGenerator(Element
aContainerElement,
FWSimSession aSession, HashMap aFieldMap,
FWSimVariable.CONTENT_TYPE aContentType);
factory method for Creation of the resource transformer
- aContainerElement
- aSession
- aFieldMap
- aContentType
returns the resource transformer
// Public Instance Methods public void
writeSimulation(HashMap aSimulationMap);
public List
updateSimulations(
FWSimulationControlCache aCache, String
aProjectID, int aStartNumber);
- aCache
- aSelectedSimulation
- aProjectID
- aStartNumber
- aMaxEndNumber
returns the created Simulations
public boolean
canUpdate(String aProjectName);
returns the canUpdate
public void
setInitial();
- sets SessionUpdate to true
public void finalize(); // Overrides java.lang.Object
public void reset();
// Protected Instance Methods protected void clearSimulations();
Clear the iSimulationsList
protected int getSimulationsListSize();
Get the size of iSimulationsList
returns the count of simulations
protected
FWSimSimulation getSimulation(int index);
Get simulation by index
returns the simulation with the index. if not available null
protected boolean
addSimulation(
FWSimVarMap aVarMap);
Add simulation to iSimulationsList
returns if the adding was successful
protected void
setFinished();
- sets SessionUpdate to false
}
Hierarchy: java.lang.Object - FWSimulationControlContainer (net.simplace.simulation.util.FWSimFieldContainer) - FWSimulationGenerator
Extended by: net.simplace.simulation.control.generators.DefaultSimulationGenerator, net.simplace.simulation.control.generators.SimpleSimulationGenerator
Passed to: net.simplace.simulation.FWSimProject()
Returned by: createSimulationGenerator()