public class BoilerControl extends Object implements UtilityControl
Constructor and Description |
---|
BoilerControl(int relayNumber,
InOutAll inoutall,
Settings settings)
Constructor for boiler control
|
Modifier and Type | Method and Description |
---|---|
double |
getConsumptionEstimation()
Runs an estimation on previous data to find the right value.
|
int |
getRelayNumber() |
Settings |
getSettings() |
int |
getUrgency()
The Urgency reflects how important the controller evaluates its need of
usage time.
|
boolean |
permitUsage(boolean use)
permits usage to the relay also used for measuring the average
consumption
|
void |
setRelayNumber(int relayNumber) |
void |
setSettings(Settings settings) |
public Settings getSettings()
public void setSettings(Settings settings)
public int getRelayNumber()
public void setRelayNumber(int relayNumber)
public boolean permitUsage(boolean use)
permitUsage
in interface UtilityControl
use
- represents if the relay is allowed to be active or notpublic int getUrgency()
getUrgency
in interface UtilityControl
public double getConsumptionEstimation()
UtilityControl
getConsumptionEstimation
in interface UtilityControl
Copyright © 2015. All rights reserved.