public static class SARSCollector.UniformRandomSARSCollector extends SARSCollector
StateGenerator by choosing actions uniformly at random.SARSCollector.UniformRandomSARSCollectoractionTypes| Constructor and Description | 
|---|
UniformRandomSARSCollector(java.util.List<ActionType> actionTypes)
Initializes this collector's action set to use for collecting data. 
 | 
UniformRandomSARSCollector(SADomain domain)
Initializes the collector's action set using the actions that are part of the domain. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
SARSData | 
collectDataFrom(Environment env,
               int maxSteps,
               SARSData intoDataset)
Collects data from an  
Environment's current state until either the maximum
 number of steps is taken or a terminal state is reached. | 
SARSData | 
collectDataFrom(State s,
               SampleModel model,
               int maxSteps,
               SARSData intoDataset)
Collects data from an initial state until either a terminal state is reached or until the maximum number of steps is taken. 
 | 
collectNInstances, collectNInstancespublic UniformRandomSARSCollector(SADomain domain)
domain - the domain containing the actions to usepublic UniformRandomSARSCollector(java.util.List<ActionType> actionTypes)
actionTypes - the action set to use for collecting data.public SARSData collectDataFrom(State s, SampleModel model, int maxSteps, SARSData intoDataset)
SARSCollectorcollectDataFrom in class SARSCollectors - the initial state from which data should be collected.model - the model of the world to usemaxSteps - the maximum number of steps that can be taken.intoDataset - the dataset into which data will be stored. If null, a dataset is created.public SARSData collectDataFrom(Environment env, int maxSteps, SARSData intoDataset)
SARSCollectorEnvironment's current state until either the maximum
 number of steps is taken or a terminal state is reached.
 Data is stored into the dataset intoDataset and returned. If intoDataset is null, then it is first created.collectDataFrom in class SARSCollectorenv - the Environment from which data will be collected.maxSteps - the maximum number of steps to take in the environment.intoDataset - the dataset into which data will be stored. If null, a dataset is created.