↖️ Back to specs

constructs
constructs
constructs
uses
uses
constructs
constructs
Sensor
+Sensor(etName : String, scanTime : int)
+checkSystem() : String
+scan(x : int, y : int, width : int) : int
«main»
ExtraterrestrialLocator
+main(args : String[])
ELgorithm
-sensor : Sensor
+ELgorithm(sensor : Sensor)
+search(x : int, y : int, width : int) : Point
LoggingSensor
-Map<Area, Boolean> scanLog
+LoggingSensor(etName : String, scanTime : int)
+scan(x : int, y : int, width : int) : int
+getScanLog() : Map<Area_COMMA_Boolean>
+toString() : String
SensorDisplay
Point
+x : int
+y : int
+Point(x : int, y : int)
Area
-x : int
-y : int
-width : int
+Area(x : int, y : int, width : int)
+getX() : int
+getY() : int
+getWidth() : int
+toString() : String

7 Classes

The seven classes depicted in the UML diagram include some code provided in the Jave Runtime Enviroment, other classes you should create or modify, and other classes still will not be necessary until Part 2 of the assignment.

Provided (gray background)

The following classes are provided via pa5.jar, and you should not modify them:

  1. SensorDisplay
  2. Sensor

JRE (black background)

The Java Runtime Environment itself provides the Point class.

Should Create (lavender background)

  1. ELgorithm

Part 2 (dotted borders)

Should Create (dotted borders, lavender background)

  1. Area
  2. LoggingSensor

Should Modify (dotted borders, gray background)