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_Byte;
9 import org.epics.vtype.VByte;
10 import org.epics.vtype.VTypeToString;
11
12
13
14
15
16 class VByteFromDbr extends VNumberMetadata<DBR_TIME_Byte, DBR_CTRL_Double> implements VByte {
17
18 public VByteFromDbr(DBR_TIME_Byte dbrValue, DBR_CTRL_Double metadata, JCAConnectionPayload connPayload) {
19 super(dbrValue, metadata, connPayload);
20 }
21
22 @Override
23 public Byte getValue() {
24 return dbrValue.getByteValue()[0];
25 }
26
27 @Override
28 public String toString() {
29 return VTypeToString.toString(this);
30 }
31
32 }