Package edu.cmu.tetrad.session
Class SimulationStudy
java.lang.Object
edu.cmu.tetrad.session.SimulationStudy
Runs a simulation edu.cmu.tetrad.study for a session which traverses a subtree of the
session graph in depth-first order and executes each node encountered a
specified number of times.
- Author:
- Joseph Ramsey
-
Constructor Summary
ConstructorsConstructorDescriptionSimulationStudy(Session session) Constructs a new simulation edu.cmu.tetrad.study for the given session. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a session listener.booleancreateDescendantModels(SessionNode sessionNode, boolean overwrite) voidexecute(SessionNode sessionNode, boolean overwrite) Executes the given node the specified number of times.static SetgetDescendants(SessionNode node) static intgetRepetition(SessionNode node) Gets the repeition of the given node.voidsetRepetition(SessionNode node, int repetition) Sets the number of times the given node (and all of its children) will be executed each time it is encountered in a depth first traversal of the tree.
-
Constructor Details
-
SimulationStudy
Constructs a new simulation edu.cmu.tetrad.study for the given session.
-
-
Method Details
-
setRepetition
Sets the number of times the given node (and all of its children) will be executed each time it is encountered in a depth first traversal of the tree.- Parameters:
repetition- the repetition, an integer > 0.
-
getRepetition
Gets the repeition of the given node. If the repetition of a node has not been set, it is assumed to be 1. -
execute
Executes the given node the specified number of times. -
createDescendantModels
-
addSessionListener
Adds a session listener. -
getDescendants
-
getSession
-