Sie sind auf Seite 1von 1

SpaceRegion <<enumeration>> <<enumeration>>

Orientation State
- spaceRegion: SpaceRegion
- droneList: List<Drone> North Empty
- regionTable: Array[Square] NorthEast Stars
- obstacleList: ArrayList<Square> East Sun
1 - width: Integer SouthEast Drone
- length: Integer South Force_Field
- exploredSquares: List<Square> SouthWest
- safeSquares: Integer West
- scannedSafeSquares: ArrayList<Square> NorthWest
- totalTurns: Integer

+ SpaceRegion(scenario_file)
+ requestTurn(drone: Drone): Square 1
+ pullDrone(drone: Drone): void

composed of
contains

1..* 1..*
Square Drone

- xCoord: Integer - currSquare: Square


1 1
- yCoord: Integer - orient: Orientation
- state: State has-a - exists: Boolean
- tempSafeSquares: List<Squares>
+ Square(int xCoord, int yCoord, State state)
+ Drone(xCoord: Integer, yCoord: Integer, orient: Orientation
+ steer(orient: Orientation): void
makeDecision() + thrust(steps: Integer): void 
calls either + scan(): List<Square>
steer(), thrust(), + pass(); void
scan(), or pass() + makeDecision(): Square  

Das könnte Ihnen auch gefallen