sysModel.env
Class WrappingEnv.Location

java.lang.Object
  extended by sysModel.env.ASquareEnv.Location
      extended by sysModel.env.WrappingEnv.Location
Enclosing class:
WrappingEnv

public class WrappingEnv.Location
extends ASquareEnv.Location

Overridden location class that does wrapping.

Author:
Mathias G. Ricken

Constructor Summary
WrappingEnv.Location(double x, double y)
          Ctor for location.
 
Method Summary
 ASquareEnv.Location getNeighbor(ASquareEnv.Direction dir)
          Return the location of a neighbor in the given direction.
 
Methods inherited from class sysModel.env.ASquareEnv.Location
getX, getY, inField, parse, same, setX, setY, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrappingEnv.Location

public WrappingEnv.Location(double x,
                            double y)
Ctor for location.

Parameters:
x - x position
y - y position
Method Detail

getNeighbor

public ASquareEnv.Location getNeighbor(ASquareEnv.Direction dir)
Return the location of a neighbor in the given direction.

Overrides:
getNeighbor in class ASquareEnv.Location
Parameters:
dir - the direction of the neighbor to be returned
Returns:
neighbor in that direction