Interface Simulation
- All Superinterfaces:
HasParameters
,Serializable
,TetradSerializable
- All Known Implementing Classes:
BayesNetSimulation
,ConditionalGaussianSimulation
,GeneralSemSimulation
,GeneralSemSimulationSpecial1
,LeeHastieSimulation
,LinearFisherModel
,LinearSineSimulation
,LoadContinuousDataAndGraphs
,LoadContinuousDataAndSingleGraph
,LoadContinuousDataSmithSim
,LoadDataAndGraphs
,LoadDataFromFileWithoutGraph
,NLSemSimulation
,SemSimulation
,SemThenDiscretize
,SingleDatasetSimulation
,StandardizedSemSimulation
,TimeSeriesSemSimulation
The interface that simulations must implement.
- Version:
- $Id: $Id
- Author:
- josephramsey
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
ConstantserialVersionUID=23L
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createData
(Parameters parameters, boolean newModel) Creates a data set and simulates data.getDataModel
(int index) Returns the number of data sets to simulate.Returns the data type of the data.Returns the description of the simulation.int
Returns the number of data models.Returns the list of parameters used in the simulation.Class
<? extends RandomGraph> Retrieves the class of a random graph for the simulation.default String
Returns the short name of the simulation.Class
<? extends Simulation> Returns the class of the simulation.getTrueGraph
(int index) Returns the true graph at the given index.
-
Field Details
-
serialVersionUID
static final long serialVersionUIDConstantserialVersionUID=23L
- See Also:
-
-
Method Details
-
createData
Creates a data set and simulates data.- Parameters:
parameters
- The parameters to use in the simulation.newModel
- If true, a new model is created. If false, the model is reused.
-
getNumDataModels
int getNumDataModels()Returns the number of data models.- Returns:
- The number of data sets to simulate.
-
getTrueGraph
Returns the true graph at the given index.- Parameters:
index
- The index of the desired true graph.- Returns:
- That graph.
-
getDataModel
Returns the number of data sets to simulate.- Parameters:
index
- The index of the desired simulated data set.- Returns:
- That data set.
-
getDataType
DataType getDataType()Returns the data type of the data.- Returns:
- Returns the type of the data, continuous, discrete or mixed.
-
getDescription
String getDescription()Returns the description of the simulation.- Returns:
- Returns a one-line description of the simulation, to be printed at the beginning of the report.
-
getShortName
Returns the short name of the simulation.- Returns:
- The short name of the simulation.
-
getParameters
Returns the list of parameters used in the simulation.- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- Returns the parameters used in the simulation. These are the parameters whose values can be varied.
-
getRandomGraphClass
Class<? extends RandomGraph> getRandomGraphClass()Retrieves the class of a random graph for the simulation.- Returns:
- The class of a random graph for the simulation.
-
getSimulationClass
Class<? extends Simulation> getSimulationClass()Returns the class of the simulation. This method is used to retrieve the class of a simulation based on the selected simulations in the model.- Returns:
- The class of the simulation.
-