net.simplace.sim.control.FWSimulationGenerator

The simulation generator creates for existing project ( net.simplace.sim.FWSimProject ) a range of simulations ( net.simplace.sim.FWSimSimulation ). This abstract class has 2 implementations: net.simplace.sim.control.generators.SimpleSimulationGenerator: Final class used for net.simplace.sim.FWSimProject.PROJECT_MODE.SIMULATION and net.simplace.sim.util.FWSimVariable.CONTENT_TYPE.sim. It just delivers the (few) simulations in the selected project. net.simplace.sim.control.generators.DefaultSimulationGenerator: Class used for all net.simplace.sim.FWSimProject.PROJECT_MODEs but net.simplace.sim.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
returns the resource transformer

// Public Instance Methods
public void writeSimulation(HashMap aSimulationMap);

public List updateSimulations(FWSimulationControlCache aCache, String
aProjectID, int aStartNumber);


returns the created Simulations
public abstract void generate(FWSimulationControlCache aControlCache,
ResultSet aSimulationsResultSet) throws SQLException;

abstract method generate that is called from outside when the user calls: net.simplace.sim.control.FWSimulationGenerator
public boolean canUpdate(String aProjectName);


returns the canUpdate
public void setInitial();

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 ResultSet initializeProject(String aProjectID,
FWSimulationControlCache aControlCache) throws SQLException;

protected void setFinished();



}



Hierarchy: java.lang.Object - FWSimulationControlContainer (net.simplace.sim.util.FWSimFieldContainer) - FWSimulationGenerator



Extended by: net.simplace.sim.control.generators.DefaultSimulationGenerator, net.simplace.sim.control.generators.SimpleSimulationGenerator



Passed to: net.simplace.sim.FWSimProject()



Returned by: createSimulationGenerator()