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:
- josephramsey
-
Constructor Summary
ConstructorsConstructorDescriptionSimulationStudy
(Session session) Constructs a new simulation edu.cmu.tetrad.study for the given session. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a session listener.boolean
createDescendantModels
(SessionNode sessionNode, boolean overwrite) void
execute
(SessionNode sessionNode, boolean overwrite) Executes the given node the specified number of times.static Set
getDescendants
(SessionNode node) static int
getRepetition
(SessionNode node) Gets the repeition of the given node.void
setRepetition
(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
-
getRepetition
Gets the repeition of the given node. If the repetition of a node has not been set, it is assumed to be 1. -
getDescendants
-
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.
-
execute
Executes the given node the specified number of times. -
createDescendantModels
-
addSessionListener
Adds a session listener. -
getSession
-