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