|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--Reasoner.SimulationEngine
Provides the framework for running the simulation that was set up by all the previous processing stages.
StaticReasoner,
SimulationEngine,
DynamicReasoner,
MonteCarloRunSet,
ObjectTemplateSet| Field Summary | |
private java.util.ArrayList |
m_monte_carlo_run_sets
|
private ObjectTemplateSet |
m_object_template_set
|
private java.lang.String |
m_simulation_name
|
private StaticReasoner |
m_static_reasoner
|
| Constructor Summary | |
SimulationEngine(java.lang.String simulation_name,
StaticReasoner static_reasoner)
Creates a new simulator. |
|
| Method Summary | |
private Dimensions |
computeDimensions(ObjectTemplate object_template,
boolean force_determinism)
Returns the randomly selected dimensions based on the definition of their plausibility intervals and associated attribute interval node in an object template. |
private double |
computeNondeterministicDimensionValue(PlausibilityInterval plausibility_interval,
boolean force_determinism)
Returns a randomly selected dimension value based on the definition in a plausibility interval and its associated attribute interval node (i.e., center, variance, bandpass). |
private Dimensions |
computeProportionedDimensions(ObjectTemplate object_template,
double height,
double width,
double depth)
Returns the dimensions proportioned such that a change in one dimension affects the other two dimensions. |
java.util.ArrayList |
getMonteCarloRunSets()
Returns the Monte Carlo run sets generated by this simulation. |
java.lang.String |
getName()
Returns the name of this simulation. |
ObjectTemplateSet |
getObjectTemplateSet()
Returns the object template set supporting this simulation engine. |
StaticReasoner |
getStaticReasoner()
Returns the static reasoner supporting this simulation engine. |
private void |
simulate(boolean force_determinism,
int num_simulations,
int max_partition_iterations,
int max_partition_backtracks,
boolean generate_inferences)
Runs a Monte Carlo simulation over the object templates to produce sets of interpretations. |
void |
simulate(int num_simulations,
int max_partition_iterations,
int max_partition_backtracks,
boolean force_determinism,
boolean generate_inferences)
Runs a Monte Carlo simulation over the object templates to produce sets of interpretations. |
void |
simulate(int num_simulations,
int max_partition_iterations,
int max_partition_backtracks,
boolean force_determinism,
boolean generate_inferences,
long random_seed)
Runs a Monte Carlo simulation over the object templates to produce sets of interpretations. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private java.lang.String m_simulation_name
private ObjectTemplateSet m_object_template_set
private StaticReasoner m_static_reasoner
private java.util.ArrayList m_monte_carlo_run_sets
| Constructor Detail |
public SimulationEngine(java.lang.String simulation_name,
StaticReasoner static_reasoner)
simulation_name - - the simulation namestatic_reasoner - - this static reasoner contributing to this simulation engine| Method Detail |
private Dimensions computeDimensions(ObjectTemplate object_template,
boolean force_determinism)
throws java.lang.Exception
object_template - - the defining object templateforce_determinism - - whether the random-number component of the calculation is disabled
java.lang.Exception - - if the dimensions cannot be computedcomputeProportionedDimensions(Reasoner.ObjectTemplate, double, double, double),
computeNondeterministicDimensionValue(KnowledgeBase.PlausibilityInterval, boolean)
private double computeNondeterministicDimensionValue(PlausibilityInterval plausibility_interval,
boolean force_determinism)
throws java.lang.Exception
plausibility_interval - - the plausibility interval defining the value computationforce_determinism - - whether the random-number component of the calculation is disabled
java.lang.Exception - - if the dimension cannot be computedcomputeDimensions(Reasoner.ObjectTemplate, boolean),
AttributeIntervalNode,
PlausibilityInterval.getCenteredRandomValue(double, double, double),
PlausibilityInterval.getBoundFixedValue(int)
private Dimensions computeProportionedDimensions(ObjectTemplate object_template,
double height,
double width,
double depth)
object_template - - the defining object templateheight - - the unproportioned heightwidth - - the unproportioned widthdepth - - the unproportioned depth
computeDimensions(Reasoner.ObjectTemplate, boolean)public java.util.ArrayList getMonteCarloRunSets()
public java.lang.String getName()
public ObjectTemplateSet getObjectTemplateSet()
public StaticReasoner getStaticReasoner()
public void simulate(int num_simulations,
int max_partition_iterations,
int max_partition_backtracks,
boolean force_determinism,
boolean generate_inferences)
throws java.lang.Exception
num_simulations - - the number of simulations to runmax_partition_iterations - - the maximum number of propagation attempts per partition before backtrackingmax_partition_backtracks - - the maximum number of backtracks to earlier partitionsforce_determinism - - whether the random-number component of the dimensions calculations is disabledgenerate_inferences - - whether inferences should be generated
java.lang.Exception - - if the simulation fails
public void simulate(int num_simulations,
int max_partition_iterations,
int max_partition_backtracks,
boolean force_determinism,
boolean generate_inferences,
long random_seed)
throws java.lang.Exception
num_simulations - - the number of simulations to runmax_partition_iterations - - the maximum number of propagation attempts per partition before backtrackingmax_partition_backtracks - - the maximum number of backtracks to earlier partitionsforce_determinism - - whether the random-number component of the dimensions calculations is disabledgenerate_inferences - - whether inferences should be generatedrandom_seed - - the random seed
java.lang.Exception - - if the simulation fails
private void simulate(boolean force_determinism,
int num_simulations,
int max_partition_iterations,
int max_partition_backtracks,
boolean generate_inferences)
throws java.lang.Exception
force_determinism - - whether the random-number component of the dimensions calculations is disablednum_simulations - - the number of simulations to runmax_partition_iterations - - the maximum number of propagation attempts per partition before backtrackingmax_partition_backtracks - - the maximum number of backtracks to earlier partitionsgenerate_inferences - - whether inferences should be generated
java.lang.Exception - - if the simulation failspublic java.lang.String toString()
toString in class java.lang.ObjectSupport.toPrettyString(java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||