| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectsysModel.env.AGlobalEnv.ALocalEnv
sysModel.env.NoGridEnv.LocalEnvironment
protected class NoGridEnv.LocalEnvironment
Concrete local environment for the square unbounded environment.
| Nested Class Summary | |
|---|---|
| private  class | NoGridEnv.LocalEnvironment.MoveLambdaLambda to execute a move. | 
| Field Summary | |
|---|---|
| (package private)  NoGridEnv.Direction | _dirDirection. | 
| (package private)  NoGridEnv.Location | _locLocation. | 
| (package private)  ILocalEnvState | _stateState. | 
| Constructor Summary | |
|---|---|
| NoGridEnv.LocalEnvironment(NoGridEnv.Location loc,
                           NoGridEnv.Direction dir)Construct a new local environment. | |
| Method Summary | |
|---|---|
|  NoGridEnv.Direction | direction()Accessor for the direction. | 
|  void | drawFish(AFish fish,
         java.awt.Graphics2D g,
         java.awt.Component comp)Draw the fish on the graphics object. | 
|  NoGridEnv.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. | 
|  java.lang.String | toString()String representation of the local environment. | 
|  void | turnRight(AFish fish,
          double radians)Turn the fish radians to the right. | 
| 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 | 
|---|
NoGridEnv.Location _loc
NoGridEnv.Direction _dir
ILocalEnvState _state
| Constructor Detail | 
|---|
public NoGridEnv.LocalEnvironment(NoGridEnv.Location loc,
                                  NoGridEnv.Direction dir)
loc - locationdir - direction| Method Detail | 
|---|
public NoGridEnv.Location location()
public NoGridEnv.Direction direction()
protected AGlobalEnv.ALocalEnv makeMoveFwdLocalEnv()
makeMoveFwdLocalEnv in class AGlobalEnv.ALocalEnvprotected ILambda makeMoveLambda(AGlobalEnv.ALocalEnv le)
makeMoveLambda in class AGlobalEnv.ALocalEnvle - local environment for the target
public void drawFish(AFish fish,
                     java.awt.Graphics2D g,
                     java.awt.Component comp)
drawFish in class AGlobalEnv.ALocalEnvfish - AFish to drawFishg - graphics object to drawFish oncomp - component to drawFish on
public void turnRight(AFish fish,
                      double radians)
turnRight in class AGlobalEnv.ALocalEnvfish - AFish to turnradians - radians to turnpublic java.lang.String toString()
toString in class java.lang.Object| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||