public abstract class LLBlock extends java.lang.Object implements ObjectInstance
Modifier and Type | Class and Description |
---|---|
static class |
LLBlock.LLObstacle |
static class |
LLBlock.LLPad |
Modifier and Type | Field and Description |
---|---|
double |
bottom |
double |
left |
protected java.lang.String |
name |
double |
right |
double |
top |
Constructor and Description |
---|
LLBlock() |
LLBlock(double left,
double right,
double bottom,
double top,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
abstract LLBlock |
copy()
Returns a copy of this state suitable for creating state transitions.
|
LLBlock |
copyWithName(java.lang.String objectName)
Returns a copy of this
ObjectInstance with the specified name |
java.lang.Object |
get(java.lang.Object variableKey)
Returns the value for the given variable key.
|
java.lang.String |
getName() |
java.lang.String |
name()
Returns the name of this object instance
|
void |
setName(java.lang.String name) |
java.lang.String |
toString() |
java.util.List<java.lang.Object> |
variableKeys()
Returns the list of state variable keys.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
className
public double left
public double right
public double bottom
public double top
protected java.lang.String name
public LLBlock()
public LLBlock(double left, double right, double bottom, double top, java.lang.String name)
public java.lang.String name()
ObjectInstance
name
in interface ObjectInstance
public LLBlock copyWithName(java.lang.String objectName)
ObjectInstance
ObjectInstance
with the specified namecopyWithName
in interface ObjectInstance
objectName
- the new name for the objectpublic java.util.List<java.lang.Object> variableKeys()
State
variableKeys
in interface State
public java.lang.Object get(java.lang.Object variableKey)
State
public java.lang.String getName()
public void setName(java.lang.String name)
public abstract LLBlock copy()
State
DeepCopyState
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 toString()
toString
in class java.lang.Object