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, iSimulationsMap
Fields inherited from class net.simplace.sim.control.FWSimulationControlContainer
iCache, iCals, iConstraint, iContainerElement, iControlMap, iFieldMap, iInputMap, iInputs, iName, iParams, iSession, iSimulationMap
-
Constructor Summary
ConstructorDescriptionEquidistantCalSimGenerator
(org.jdom2.Element aGeneratorElement, FWSimSession aSession, HashMap<String, FWSimVariable<?>> aFieldMap, FWSimVariable.CONTENT_TYPE aContentType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
generate
(FWSimulationControlCache aCache, ResultSet aResultSet) abstract method generate that is called from outside when the user calls:FWSimulationGenerator#updateSimulations(FWSimSimulation, String)
void
init()
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, writeSimulation
Methods 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:FWSimulationControlContainer
The model initialization function. Will be called only once, before running the model using process().- Overrides:
init
in classDefaultSimulationGenerator
-
createVariables
- Specified by:
createVariables
in interfaceFWSimFieldContainer
- Overrides:
createVariables
in classDefaultSimulationGenerator
- Returns:
- variables from the field map
- See Also:
-
generate
Description copied from class:FWSimulationGenerator
abstract method generate that is called from outside when the user calls:FWSimulationGenerator#updateSimulations(FWSimSimulation, String)
- Overrides:
generate
in classDefaultSimulationGenerator
- Throws:
SQLException
Exception
- See Also:
-
net.simplace.sim.control.FWSimulationGenerator#generate(net.simplace.sim.FWSimSimulation)
-