Class EquidistantCalSimGenerator
java.lang.Object
net.simplace.sim.control.FWSimulationControlContainer
net.simplace.sim.control.FWSimulationGenerator
net.simplace.sim.control.generators.DefaultSimulationGenerator
net.simplace.sim.control.generators.EquidistantCalSimGenerator
- All Implemented Interfaces:
FWSimFieldContainer
Creates equidistant parameter values within a range.
WIKI_START
The generator generates for each given parameter `count` many
steps between `min` and `max` and creates for each parameter
set a simulation.
An optional constraint prohibits the creation of simulations
with invalid values that do not match the constraint rule.
== Example ==
{{{
|
|
| 0
| 1500
| 31
|
|
| 1000
| 2000
| 21
|
|
|
}}}
== Notice ==
The number of generated simulation can be considerably high if you use
many parameters, as the the parameters counts multiply. E. g. if you
have 10 parameters and 50 counts the generator would generate
\(50 \cdot 50 \cdot ...\cdot 50 = 50^{10} \approx 10^{17} \) parameter sets.
To illustrate this magnitude: just to store each set of 10 parameters
we need 10 bytes. Storing all parameters, we need \(10^{18}\) bytes - or
one million harddisks with 1TB capacity. And if a super fast computer would
calculate hundred millions of simulations per second, we would still need
\(10^9\) seconds or more than 30 years to calculate them.
WIKI_END
- Author:
- Andreas Enders
-
Field Summary
Fields inherited from class net.simplace.sim.control.FWSimulationGenerator
iContentType, iSimulationsMapFields inherited from class net.simplace.sim.control.FWSimulationControlContainer
iCache, iCals, iConstraint, iContainerElement, iControlMap, iFieldMap, iInputMap, iInputs, iName, iParams, iSession, iSimulationMap -
Constructor Summary
ConstructorsConstructorDescriptionEquidistantCalSimGenerator(org.jdom2.Element aGeneratorElement, FWSimSession aSession, HashMap<String, FWSimVariable<?>> aFieldMap, FWSimVariable.CONTENT_TYPE aContentType) -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(FWSimulationControlCache aCache, ResultSet aResultSet) abstract method generate that is called from outside when the user calls:FWSimulationGenerator#updateSimulations(FWSimSimulation, String)voidinit()The model initialization function.Methods inherited from class net.simplace.sim.control.FWSimulationGenerator
addSimulation, canUpdate, clearSimulations, createSimulationGenerator, finalize, getSimulation, getSimulationsListSize, initializeProject, reset, setFinished, setInitial, updateSimulations, writeSimulationMethods inherited from class net.simplace.sim.control.FWSimulationControlContainer
addProcessTime, addVariable, checkCondition, evaluate, getContentType, getCreateFormXML, getEditFormXML, getFieldMap, getFrequence, getInputVariables, getName, getOrderNumber, getOutputVariables, getVariable, getVarMap, isConditionCheck, readInputCalAndConstraint, removeVariable, setPropertyValue, toXML
-
Constructor Details
-
EquidistantCalSimGenerator
public EquidistantCalSimGenerator(org.jdom2.Element aGeneratorElement, FWSimSession aSession, HashMap<String, FWSimVariable<?>> aFieldMap, FWSimVariable.CONTENT_TYPE aContentType) - Parameters:
aGeneratorElement-aSession-aFieldMap-aContentType-
-
-
Method Details
-
init
public void init()Description copied from class:FWSimulationControlContainerThe model initialization function. Will be called only once, before running the model using process().- Overrides:
initin classDefaultSimulationGenerator
-
createVariables
- Specified by:
createVariablesin interfaceFWSimFieldContainer- Overrides:
createVariablesin classDefaultSimulationGenerator- Returns:
- variables from the field map
- See Also:
-
generate
Description copied from class:FWSimulationGeneratorabstract method generate that is called from outside when the user calls:FWSimulationGenerator#updateSimulations(FWSimSimulation, String)- Overrides:
generatein classDefaultSimulationGenerator- Throws:
SQLExceptionException- See Also:
-
net.simplace.sim.control.FWSimulationGenerator#generate(net.simplace.sim.FWSimSimulation)
-