Search in sources :

Example 6 with InletReading

use of com.vmware.flowgate.poweriqworker.model.InletReading in project flowgate by vmware.

the class SyncRealTimeDataJobTest method getInlets.

List<Inlet> getInlets() {
    Inlet inlet = new Inlet();
    List<Inlet> inlets = new ArrayList<Inlet>();
    inlet.setId(23L);
    inlet.setOrdinal(1);
    inlet.setPduId(128L);
    inlet.setPueIt(true);
    inlet.setPueTotal(true);
    inlet.setSource(true);
    InletReading inletReading = new InletReading();
    inletReading.setCurrent(1.2);
    inletReading.setApparentPower(20.0);
    inletReading.setVoltage(200.0);
    inletReading.setReadingTime("2018/10/18 05:57:26 +0300");
    inletReading.setActivePower(26.6);
    inletReading.setUnutilizedCapacity(15.2);
    inlet.setReading(inletReading);
    inlets.add(inlet);
    return inlets;
}
Also used : ArrayList(java.util.ArrayList) InletReading(com.vmware.flowgate.poweriqworker.model.InletReading) Inlet(com.vmware.flowgate.poweriqworker.model.Inlet)

Aggregations

InletReading (com.vmware.flowgate.poweriqworker.model.InletReading)6 ArrayList (java.util.ArrayList)5 InletPoleReading (com.vmware.flowgate.poweriqworker.model.InletPoleReading)3 OutletReading (com.vmware.flowgate.poweriqworker.model.OutletReading)3 Pdu (com.vmware.flowgate.poweriqworker.model.Pdu)3 Reading (com.vmware.flowgate.poweriqworker.model.Reading)3 Inlet (com.vmware.flowgate.poweriqworker.model.Inlet)2 PduOutlet (com.vmware.flowgate.common.model.PduOutlet)1 ValueUnit (com.vmware.flowgate.common.model.ValueUnit)1 Outlet (com.vmware.flowgate.poweriqworker.model.Outlet)1 SensorReading (com.vmware.flowgate.poweriqworker.model.SensorReading)1 DecimalFormat (java.text.DecimalFormat)1