1
2
3
4
5 package org.epics.pvmanager.jca;
6
7 import gov.aps.jca.dbr.DBR_CTRL_Double;
8 import gov.aps.jca.dbr.DBR_TIME_Float;
9 import org.epics.vtype.VFloat;
10 import org.epics.vtype.VTypeToString;
11
12
13
14
15
16 class VFloatFromDbr extends VNumberMetadata<DBR_TIME_Float, DBR_CTRL_Double> implements VFloat {
17
18 public VFloatFromDbr(DBR_TIME_Float dbrValue, DBR_CTRL_Double metadata, JCAConnectionPayload connPayload) {
19 super(dbrValue, metadata, connPayload);
20 }
21
22 @Override
23 public Float getValue() {
24 return dbrValue.getFloatValue()[0];
25 }
26
27 @Override
28 public String toString() {
29 return VTypeToString.toString(this);
30 }
31
32 }