public class Tiling
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Tiling.ObjectTile
A class for creating a tiling of a single OO-MDP object instance which will be combined with other object instance tiles
to create a single state tiling.
|
class |
Tiling.StateTile
A class for representing a tile, which can be treated as a state feature.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> |
classOrder
A list specifying the order that the attributes from different classes will be combined into a single multi-dimensional tile
|
protected java.util.Map<java.lang.String,java.util.List<AttributeTileSpecification>> |
specification
A map from object class names to attribute tile specifications for attributes of that class
|
Constructor and Description |
---|
Tiling()
Initializes an empty tiling with not attribute specifications.
|
Modifier and Type | Method and Description |
---|---|
void |
addSpecification(java.lang.String className,
Attribute attribute,
double windowSize,
double bucketBoundary)
Adds an attribute tiling specification for the an attribute of the given class with the given window size and bucket/tile boundary.
|
Tiling.StateTile |
getStateTile(State s)
Returns the multi-dimensional tile from this tiling that corresponds to the given input state.
|
protected java.util.Map<java.lang.String,java.util.List<AttributeTileSpecification>> specification
protected java.util.List<java.lang.String> classOrder
public Tiling()
public void addSpecification(java.lang.String className, Attribute attribute, double windowSize, double bucketBoundary)
className
- the name of the object class whose attribute specification will be providedattribute
- the attribute for which a tiling specification will be providedwindowSize
- the window size or width of the attribute tilingbucketBoundary
- the offset of this tile alignment; that is, where the first tiling boundary startspublic Tiling.StateTile getStateTile(State s)
s
-