public class ServerStatus extends Server
Constructor and Description |
---|
ServerStatus() |
Modifier and Type | Method and Description |
---|---|
void |
addListRules(AutonomousRule rule)
addListRules: add a rule to the list of rules.
|
void |
exchangeStatus(Status newStatus)
exchangeStatus: this method set the current status as last status, and the status passed
as parameter as the current status.
|
Status |
getCurrentStatus()
getCurrentStatus: return the current status.
|
Status |
getLastStatus()
getLastStatus: return the last global status.
|
java.util.ArrayList<AutonomousRule> |
getListRules()
getListRules: get the list of rules.
|
AutonomousRule |
getListRules(int pos) |
double |
getOptimalTemp()
getOptimalTemp: Get the optimal temperature of thermosyphon water.
|
void |
setCurrentStatus(Status currentStatus)
setCurrentStatus: set the current status.
|
void |
setLastStatus(Status lastStatus)
setLastStatus: set the last global status.
|
void |
setListRules(java.util.ArrayList<AutonomousRule> listRules)
SetListRules: set the list of rules.
|
void |
setOptimalTemp(double optimalTemp)
setOptimalTemp: Set the optimal temperature of thermosyphon water.
|
addDevice, getConfigTimerAutonomousRunEvery, getConfigTimerAutonomousWaitStart, getConfigTimerAutonomousWaitTime, getConfigTimerLEDRunEvery, getConfigTimerLEDWaitStart, getDevice, getDevice, getIdentifier, getIpAddress, getLastCommand, getLastConnDate, getLastResponse, getListDevices, getNumDevices, getOnline, getPort, setConfigTimerAutonomousRunEvery, setConfigTimerAutonomousWaitStart, setConfigTimerAutonomousWaitTime, setConfigTimerLEDRunEvery, setConfigTimerLEDWaitStart, setIdentifier, setIpAddress, setLastCommand, setLastConnDate, setLastConnDate, setLastResponse, setOnline, setPort, toString, updateDevice, updateDevice
public Status getLastStatus()
public void setLastStatus(Status lastStatus)
lastStatus
- the lastStatus to setpublic Status getCurrentStatus()
public void setCurrentStatus(Status currentStatus)
currentStatus
- the currentStatus to setpublic void exchangeStatus(Status newStatus)
newStatus
- New status to set as current status.public double getOptimalTemp()
public void setOptimalTemp(double optimalTemp)
optimalTemp
- the optimalTemp to setpublic java.util.ArrayList<AutonomousRule> getListRules()
public AutonomousRule getListRules(int pos)
public void setListRules(java.util.ArrayList<AutonomousRule> listRules)
listRules
- the listRules to setpublic void addListRules(AutonomousRule rule)
rule
- to add