Constructor and Description |
---|
InOutAllTest(int Number_Of_Relays,
int number_of_thermostats)
Constructor of InOutAllTest.
|
Modifier and Type | Method and Description |
---|---|
boolean |
activateRelay(int relayNumber) |
List<egotham.sdi.model.RealValue> |
consumptionData(int relayNumber,
long startTime,
long endTime,
int resultLimit)
Inputs don't matter, returns data from setConsumptionData(...)
|
boolean |
deactivateRelay(int relayNumber) |
List<egotham.sdi.model.DiscreteValue> |
fullConsumption(int N,
long startTime,
long endTime) |
double |
getConsumptionCap() |
long |
getCurrentTime() |
long[][] |
gettariff(long endTime) |
double |
getTemperature(int sensorNumber) |
void |
setConsumptionCap(double ConsumptionCap) |
void |
setConsumptionData(long[] timestamps,
double[] values)
creates new RealValue objects and places them into the ConsumptionData
List.
|
void |
setfullConsumption(long[] timestamps,
long[] values) |
void |
settariff(long[][] tariff) |
void |
setTemperature(int sensorNumber,
double temperature) |
void |
settime(long time) |
boolean |
statusRelay(int relayNumber) |
public InOutAllTest(int Number_Of_Relays, int number_of_thermostats)
Number_Of_Relays
- Number of relays for utilitiesnumber_of_thermostats
- Number of Thermostats usedpublic List<egotham.sdi.model.RealValue> consumptionData(int relayNumber, long startTime, long endTime, int resultLimit)
consumptionData
in interface InOutAll
relayNumber
- startTime
- endTime
- resultLimit
- public void setConsumptionData(long[] timestamps, double[] values)
timestamps
- values
- public boolean activateRelay(int relayNumber) throws Exception
activateRelay
in interface InOutAll
Exception
public boolean deactivateRelay(int relayNumber) throws Exception
deactivateRelay
in interface InOutAll
Exception
public boolean statusRelay(int relayNumber) throws Exception
statusRelay
in interface InOutAll
Exception
public List<egotham.sdi.model.DiscreteValue> fullConsumption(int N, long startTime, long endTime) throws Exception
fullConsumption
in interface InOutAll
Exception
public void setfullConsumption(long[] timestamps, long[] values)
public long[][] gettariff(long endTime) throws Exception
public void settariff(long[][] tariff)
public double getTemperature(int sensorNumber)
getTemperature
in interface InOutAll
public void setTemperature(int sensorNumber, double temperature)
public double getConsumptionCap()
getConsumptionCap
in interface InOutAll
public void setConsumptionCap(double ConsumptionCap)
public void settime(long time)
public long getCurrentTime()
getCurrentTime
in interface InOutAll
Copyright © 2015. All rights reserved.