|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sysModel.env.AGlobalEnv.ALocalEnv sysModel.env.ASquareEnv.ASquareLocalEnvironment sysModel.env.BoundedEnv.LocalEnvironment
protected class BoundedEnv.LocalEnvironment
Concrete local environment for the square bounded environment.
Nested Class Summary | |
---|---|
protected class |
BoundedEnv.LocalEnvironment.MoveLambda
Lambda to execute a move. |
Field Summary | |
---|---|
protected ASquareEnv.Direction |
_dir
Direction. |
protected ASquareEnv.Location |
_loc
Location. |
Fields inherited from class sysModel.env.AGlobalEnv.ALocalEnv |
---|
_state |
Constructor Summary | |
---|---|
BoundedEnv.LocalEnvironment(ASquareEnv.Location loc,
ASquareEnv.Direction dir)
Construct a new local environment. |
Method Summary | |
---|---|
ASquareEnv.Direction |
direction()
Accessor for the direction. |
ASquareEnv.Location |
location()
Accessor for the location. |
protected AGlobalEnv.ALocalEnv |
makeMoveFwdLocalEnv()
Make local environment in forward direction. |
protected ILambda |
makeMoveLambda(AGlobalEnv.ALocalEnv le)
Factory method for a move lambda. |
Methods inherited from class sysModel.env.ASquareEnv.ASquareLocalEnvironment |
---|
drawFish, toString, turnRight |
Methods inherited from class sysModel.env.AGlobalEnv.ALocalEnv |
---|
execute, removeFish, setState, tryBreedFwd, tryMoveFwd |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ASquareEnv.Location _loc
protected ASquareEnv.Direction _dir
Constructor Detail |
---|
public BoundedEnv.LocalEnvironment(ASquareEnv.Location loc, ASquareEnv.Direction dir)
loc
- locationdir
- directionMethod Detail |
---|
public ASquareEnv.Location location()
location
in class ASquareEnv.ASquareLocalEnvironment
public ASquareEnv.Direction direction()
direction
in class ASquareEnv.ASquareLocalEnvironment
protected AGlobalEnv.ALocalEnv makeMoveFwdLocalEnv()
makeMoveFwdLocalEnv
in class AGlobalEnv.ALocalEnv
protected ILambda makeMoveLambda(AGlobalEnv.ALocalEnv le)
makeMoveLambda
in class AGlobalEnv.ALocalEnv
le
- local environment for the target
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |