public class ConcatenatedObjectFeatures extends java.lang.Object implements DenseStateFeatures
OOState by iterating
 over the objects, generating a double array for each object, and concatenating the reslting vectors into one vector.
 You specify the ordering of the vectorization by specifying the order of the OO-MDP object classes, and which
 DenseStateFeatures to use for objects of their class.
 If multiple objects of a class exist, then they will be unpacked in the order defined by the OOState.| Modifier and Type | Field and Description | 
|---|---|
protected java.util.List<java.lang.String> | 
objectClassOrder
The order of object classes to follow when concatenating objects into a single state feature vector. 
 | 
protected java.util.Map<java.lang.String,DenseStateFeatures> | 
objectVectorGenerators
The  
DenseStateFeatures to use for each object class | 
| Constructor and Description | 
|---|
ConcatenatedObjectFeatures()  | 
ConcatenatedObjectFeatures(java.util.List<java.lang.String> objectClassOrder,
                          java.util.Map<java.lang.String,DenseStateFeatures> objectVectorGenerators)  | 
| Modifier and Type | Method and Description | 
|---|---|
ConcatenatedObjectFeatures | 
addObjectVectorizion(java.lang.String className,
                    DenseStateFeatures objectVectorization)
Adds an OO-MDP class next in the list of object classes to vectorize with the given  
DenseStateFeatures. | 
ConcatenatedObjectFeatures | 
copy()
Returns a copy of this  
DenseStateFeatures | 
double[] | 
features(State s)
Returns a feature vector represented as a double array for a given input state. 
 | 
protected java.util.List<java.lang.String> objectClassOrder
protected java.util.Map<java.lang.String,DenseStateFeatures> objectVectorGenerators
DenseStateFeatures to use for each object classpublic ConcatenatedObjectFeatures()
public ConcatenatedObjectFeatures(java.util.List<java.lang.String> objectClassOrder,
                                  java.util.Map<java.lang.String,DenseStateFeatures> objectVectorGenerators)
public ConcatenatedObjectFeatures addObjectVectorizion(java.lang.String className, DenseStateFeatures objectVectorization)
DenseStateFeatures.className - the name of the OO-MDP object classobjectVectorization - the DenseStateFeatures to use for objects of this classpublic double[] features(State s)
DenseStateFeaturesfeatures in interface DenseStateFeaturess - the input state to turn into a feature vector.public ConcatenatedObjectFeatures copy()
DenseStateFeaturesDenseStateFeaturescopy in interface DenseStateFeaturesDenseStateFeatures