| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectsysModel.env.AGlobalEnv
sysModel.env.ASquareEnv
sysModel.env.BoundedEnv
sysModel.env.WrappingEnv
public class WrappingEnv
Implementation of a square wrapping environment.
| Nested Class Summary | |
|---|---|
|  class | WrappingEnv.LocationOverridden location class that does wrapping. | 
| static class | WrappingEnv.Test_WrappingEnvTest cases for WrappingEnv. | 
| static class | WrappingEnv.Test_WrappingEnv_LocalEnvTest cases for WrappingEnv.LocalEnv. | 
| static class | WrappingEnv.Test_WrappingEnv_LocationTest cases for WrappingEnv.Location. | 
| Nested classes/interfaces inherited from class sysModel.env.BoundedEnv | 
|---|
| BoundedEnv.EmptyField, BoundedEnv.IField, BoundedEnv.IFieldVisitor, BoundedEnv.LocalEnvironment, BoundedEnv.NonEmptyField, BoundedEnv.Test_BoundedEnv, BoundedEnv.Test_BoundedEnv_LocalEnv | 
| Nested classes/interfaces inherited from class sysModel.env.ASquareEnv | 
|---|
| ASquareEnv.ASquareLocalEnvironment, ASquareEnv.Direction | 
| Nested classes/interfaces inherited from class sysModel.env.AGlobalEnv | 
|---|
| AGlobalEnv.ALocalEnv, AGlobalEnv.BreedLambda, AGlobalEnv.ILocalEnvVisitor | 
| Field Summary | 
|---|
| Fields inherited from class sysModel.env.BoundedEnv | 
|---|
| _fieldMap, _height, _outOfBounds, _width, PAN_CENTER, PAN_SIZE | 
| Fields inherited from class sysModel.env.AGlobalEnv | 
|---|
| _breedLambdas, _cmdFactory, _moveLambdas, _securityAdapter, _waterColor, OCEAN_BLUE | 
| Constructor Summary | |
|---|---|
| WrappingEnv(ICmdFactory cmdFactory,
                       ISecurityAdapter sm)Construct a new square wrapping environment. | |
| WrappingEnv(ICmdFactory cmdFactory,
                       ISecurityAdapter sm,
                       int width,
                       int height)Construct a new square wrapping environment. | |
| Method Summary | |
|---|---|
|  AEnvFactory | makeEnvFactory()Get the environment settings class. | 
|  ASquareEnv.Location | makeLocation(double x,
                         double y)Factory method for overridden Location. | 
| protected  AGlobalEnv | parseEnvironment(Lexer l)Factory method for parsing a stream of tokens and creating a global environment from it. | 
| Methods inherited from class sysModel.env.BoundedEnv | 
|---|
| addFishToInternalData, createLocalEnvironment, getDisplaySize, getPanDelta, getViewPosition, makeLocalEnv, printHeader, removeFishFromInternalData, returnHome | 
| Methods inherited from class sysModel.env.ASquareEnv | 
|---|
| editFish, getToolTipText, makeDirection, makeDirection, makeDirection, makeLocalEnv, parseFish | 
| Methods inherited from class sysModel.env.AGlobalEnv | 
|---|
| addFish, deactivateBreedLambdas, deactivateMoveLambdas, drawBackground, makeDrawCmd, makeEditCmd, makeStepCmd, parse, removeFish, save | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public WrappingEnv(ICmdFactory cmdFactory,
                   ISecurityAdapter sm)
cmdFactory - command factory to usesm - security manager to control fish action
public WrappingEnv(ICmdFactory cmdFactory,
                   ISecurityAdapter sm,
                   int width,
                   int height)
cmdFactory - command factory to usesm - security manager to control fish actionswidth - width of environmentheight - height of environment| Method Detail | 
|---|
public ASquareEnv.Location makeLocation(double x,
                                        double y)
makeLocation in class ASquareEnvx - x coordinatey - y coordinate
public AEnvFactory makeEnvFactory()
makeEnvFactory in class BoundedEnvprotected AGlobalEnv parseEnvironment(Lexer l)
parseEnvironment in class BoundedEnvl - lexer
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||