Class DefaultSimulationGenerator
java.lang.Object
net.simplace.sim.control.FWSimulationControlContainer
net.simplace.sim.control.FWSimulationGenerator
net.simplace.sim.control.generators.DefaultSimulationGenerator
- All Implemented Interfaces:
FWSimFieldContainer
- Direct Known Subclasses:
EquidistantCalSimGenerator
Generator that generates no additional simulations: the simulations of a
FWSimProject.PROJECT_MODE.SIMULATION run come
directly from the project data (XML or resource), and without project file a single simulation of the solution is
run. Also used as base class for own generator plug-ins, which override
generate(FWSimulationControlCache, ResultSet).- Author:
- Andreas Enders
-
Field Summary
Fields inherited from class FWSimulationGenerator
iContentType, iSimulationsMapFields inherited from class FWSimulationControlContainer
iCache, iCals, iConstraint, iContainerElement, iControlMap, iFieldMap, iIdentifier, iInputMap, iInputs, iName, iParams, iSession, iSimulationMap -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSimulationGenerator(org.jdom2.Element aGeneratorElement, FWSimSession aSession, HashMap<String, FWSimVariable<?>> aFieldMap, FWSimVariable.CONTENT_TYPE aContentType) -
Method Summary
Modifier and TypeMethodDescriptionHashMap<String, FWSimVariable<?>> Returns the field map (no own variables).voidgenerate(FWSimulationControlCache aCache, ResultSet aResultSet) Generates nothing and marks the generator as finished.voidinit()Nothing to initialize.Methods inherited from class FWSimulationGenerator
addSimulation, canUpdate, clearSimulations, createSimulationGenerator, finalize, getSimulation, getSimulationsListSize, initializeProject, reset, setFinished, setInitial, updateSimulations, writeSimulationMethods inherited from class FWSimulationControlContainer
addProcessTime, addVariable, checkCondition, evaluate, getContentType, getCreateFormXML, getEditFormXML, getFieldMap, getFrequence, getInputVariables, getName, getOrderNumber, getOutputVariables, getVariable, getVarMap, isConditionCheck, readInputCalAndConstraint, removeVariable, setPropertyValue, toXML
-
Constructor Details
-
DefaultSimulationGenerator
public DefaultSimulationGenerator(org.jdom2.Element aGeneratorElement, FWSimSession aSession, HashMap<String, FWSimVariable<?>> aFieldMap, FWSimVariable.CONTENT_TYPE aContentType) - Parameters:
aGeneratorElement- thegenerator(or projectresource) element, may benullaSession- the sessionaFieldMap- variables of the project dataaContentType-FWSimVariable.CONTENT_TYPE.resorFWSimVariable.CONTENT_TYPE.sim
-
-
Method Details
-
init
-
createVariables
Returns the field map (no own variables).- Returns:
- the variables, keyed by name
- See Also:
-
generate
Generates nothing and marks the generator as finished.- Specified by:
generatein classFWSimulationGenerator- Parameters:
aCache- control cache of the runaResultSet- project data of the project (first iteration only), may benull- Throws:
Exception- if generating fails- See Also:
-