public class BlockDudeCell extends java.lang.Object implements ObjectInstance
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
className |
protected java.lang.String |
name |
int |
x |
int |
y |
| Constructor and Description |
|---|
BlockDudeCell() |
BlockDudeCell(int x,
int y,
java.lang.String className,
java.lang.String name) |
BlockDudeCell(java.lang.String className,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static BlockDudeCell |
block(java.lang.String name,
int x,
int y) |
java.lang.String |
className()
Returns the name of this OO-MDP object class
|
BlockDudeCell |
copy()
Returns a copy of this state suitable for creating state transitions.
|
ObjectInstance |
copyWithName(java.lang.String objectName)
Returns a copy of this
ObjectInstance with the specified name |
static BlockDudeCell |
exit(int x,
int y) |
java.lang.Object |
get(java.lang.Object variableKey)
Returns the value for the given variable key.
|
java.lang.String |
getClassName() |
java.lang.String |
getName() |
java.lang.String |
name()
Returns the name of this object instance
|
void |
setClassName(java.lang.String className) |
void |
setName(java.lang.String name) |
void |
setXY(int x,
int y) |
java.lang.String |
toString() |
java.util.List<java.lang.Object> |
variableKeys()
Returns the list of state variable keys.
|
public int x
public int y
protected java.lang.String className
protected java.lang.String name
public BlockDudeCell()
public BlockDudeCell(java.lang.String className,
java.lang.String name)
public BlockDudeCell(int x,
int y,
java.lang.String className,
java.lang.String name)
public static BlockDudeCell exit(int x, int y)
public static BlockDudeCell block(java.lang.String name, int x, int y)
public void setXY(int x,
int y)
public java.lang.String className()
ObjectInstanceclassName in interface ObjectInstancepublic java.lang.String name()
ObjectInstancename in interface ObjectInstancepublic ObjectInstance copyWithName(java.lang.String objectName)
ObjectInstanceObjectInstance with the specified namecopyWithName in interface ObjectInstanceobjectName - the new name for the objectpublic java.util.List<java.lang.Object> variableKeys()
StatevariableKeys in interface Statepublic java.lang.Object get(java.lang.Object variableKey)
Statepublic BlockDudeCell copy()
StateDeepCopyState or ShallowCopyState annotations. If it is a shallow copy, you should not *directly*
modify any fields of a copied state without copying the fields first, or it could contaminate the state from
which the copy was made. Alternatively, use the MutableState.set(Object, Object) method to modify
ShallowCopyState copied states,
which for ShallowCopyState instances should perform a safe copy-on-write operation.public java.lang.String getClassName()
public void setClassName(java.lang.String className)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String toString()
toString in class java.lang.Object