Package net.simplace.sim.control
Klasse FWSimulationGenerator
java.lang.Object
net.simplace.sim.control.FWSimulationControlContainer
net.simplace.sim.control.FWSimulationGenerator
- Alle implementierten Schnittstellen:
FWSimFieldContainer
- Bekannte direkte Unterklassen:
DefaultSimulationGenerator,SimpleSimulationGenerator
The simulation generator creates for existing project (
has to be implemented in extending classes.
FWSimProject )
a range of simulations ( FWSimSimulation ). This abstract class has 2
implementations:
SimpleSimulationGenerator: Final class used for FWSimProject.PROJECT_MODE.SIMULATION and
FWSimVariable.CONTENT_TYPE.sim. It just delivers the (few) simulations in
the selected project.
DefaultSimulationGenerator: Class used for all FWSimProject.PROJECT_MODEs but
FWSimVariable.CONTENT_TYPE.res. Use this class to override and create own
SimGenerator plug-ins.
Method
Ungültige Referenz
#generate(FWSimSimulation)
- Autor:
- Andreas Enders
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected FWSimVariable.CONTENT_TYPEContent Type - If Simulation or Resource Contentinitial field map as given by the createVariables()-Method in the SimComponent implementationVon Klasse geerbte Felder net.simplace.sim.control.FWSimulationControlContainer
iCache, iCals, iConstraint, iContainerElement, iControlMap, iFieldMap, iInputMap, iInputs, iName, iParams, iSession, iSimulationMap -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedFWSimulationGenerator(org.jdom2.Element aControlContainerElement, FWSimSession aSession, HashMap<String, FWSimVariable<?>> aFieldMap, FWSimVariable.CONTENT_TYPE aContentType) Default constructor of the abstract class that has to be called from overriding classes. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected booleanaddSimulation(FWSimVarMap aVarMap) Add simulation to iSimulationsListbooleanprotected voidClear the iSimulationsListstatic FWSimulationGeneratorcreateSimulationGenerator(org.jdom2.Element aContainerElement, FWSimSession aSession, HashMap<String, FWSimVariable<?>> aFieldMap, FWSimVariable.CONTENT_TYPE aContentType) factory method for Creation of the resource transformervoidfinalize()abstract voidgenerate(FWSimulationControlCache aControlCache, ResultSet aSimulationsResultSet) abstract method generate that is called from outside when the user calls:Ungültige Referenz
FWSimulationGenerator#updateSimulations(FWSimSimulation, String)protected FWSimSimulationgetSimulation(int index) Get simulation by indexprotected intGet the size of iSimulationsListprotected ResultSetinitializeProject(String aProjectID, FWSimulationControlCache aControlCache) voidreset()protected voidvoidupdateSimulations(FWSimulationControlCache aCache, String aProjectID, int aStartNumber) voidwriteSimulation(HashMap<String, FWSimVariable<?>> aSimulationMap) Von Klasse geerbte Methoden net.simplace.sim.control.FWSimulationControlContainer
addProcessTime, addVariable, checkCondition, evaluate, getContentType, getCreateFormXML, getEditFormXML, getFieldMap, getFrequence, getInputVariables, getName, getOrderNumber, getOutputVariables, getVariable, getVarMap, init, isConditionCheck, readInputCalAndConstraint, removeVariable, setPropertyValue, toXMLVon Klasse geerbte Methoden java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden net.simplace.sim.util.FWSimFieldContainer
createVariables
-
Felddetails
-
iSimulationsMap
initial field map as given by the createVariables()-Method in the SimComponent implementation -
iContentType
Content Type - If Simulation or Resource Content
-
-
Konstruktordetails
-
FWSimulationGenerator
public FWSimulationGenerator() -
FWSimulationGenerator
protected FWSimulationGenerator(org.jdom2.Element aControlContainerElement, FWSimSession aSession, HashMap<String, FWSimVariable<?>> aFieldMap, FWSimVariable.CONTENT_TYPE aContentType) Default constructor of the abstract class that has to be called from overriding classes.- Parameter:
aControlContainerElement-aSession-aFieldMap-aContentType-FWSimVariable.CONTENT_TYPE.resorFWSimVariable.CONTENT_TYPE.sim
-
-
Methodendetails
-
createSimulationGenerator
public static FWSimulationGenerator createSimulationGenerator(org.jdom2.Element aContainerElement, FWSimSession aSession, HashMap<String, FWSimVariable<?>> aFieldMap, FWSimVariable.CONTENT_TYPE aContentType) factory method for Creation of the resource transformer- Parameter:
aContainerElement-aSession-aFieldMap-aContentType-- Gibt zurück:
- the resource transformer
-
clearSimulations
protected void clearSimulations()Clear the iSimulationsList -
getSimulationsListSize
protected int getSimulationsListSize()Get the size of iSimulationsList- Gibt zurück:
- the count of simulations
-
getSimulation
Get simulation by index- Parameter:
index-- Gibt zurück:
- the simulation with the index. if not available null
-
addSimulation
Add simulation to iSimulationsList- Parameter:
aVarMap-- Gibt zurück:
- if the adding was successful
-
writeSimulation
- Parameter:
aSimulationMap-
-
updateSimulations
public List<FWSimSimulation> updateSimulations(FWSimulationControlCache aCache, String aProjectID, int aStartNumber) - Parameter:
aCache-aProjectID-aStartNumber-aSelectedSimulation-aMaxEndNumber-- Gibt zurück:
- the created Simulations
-
initializeProject
protected ResultSet initializeProject(String aProjectID, FWSimulationControlCache aControlCache) throws SQLException - Löst aus:
SQLException
-
generate
public abstract void generate(FWSimulationControlCache aControlCache, ResultSet aSimulationsResultSet) throws Exception abstract method generate that is called from outside when the user calls:Ungültige Referenz
FWSimulationGenerator#updateSimulations(FWSimSimulation, String)- Parameter:
aControlCache-aSimulationsResultSet-- Löst aus:
SQLExceptionException
-
canUpdate
- Parameter:
aProjectName-- Gibt zurück:
- the canUpdate
-
setFinished
protected void setFinished()- Parameter:
sets- SessionUpdate to false
-
setInitial
public void setInitial()- Parameter:
sets- SessionUpdate to true
-
finalize
public void finalize() -
reset
public void reset()
-