Class AreaMetric
- java.lang.Object
-
- bytemusketeers.heslingtonhustle.metrics.AreaMetric
-
- All Implemented Interfaces:
MetricEntry
class AreaMetric extends java.lang.Object implements MetricEntry
- Author:
- ENG1 Team 23 (Cohort 3)
-
-
Constructor Summary
Constructors Constructor Description AreaMetric(Area.Name initialArea)
Instantiates a newAreaMetric
with the given initialArea.Name
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getValue()
Retrieves thearea
associated with theAreaMetric
(package private) void
setArea(Area.Name areaName)
-
-
-
Field Detail
-
area
private Area.Name area
- See Also:
getValue()
-
-
Constructor Detail
-
AreaMetric
AreaMetric(Area.Name initialArea)
Instantiates a newAreaMetric
with the given initialArea.Name
- Parameters:
initialArea
- The initialArea.Name
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Retrieves thearea
associated with theAreaMetric
- Specified by:
getValue
in interfaceMetricEntry
- Returns:
- A
String
representation of thearea
-
-