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 java.util.List;
10 import org.epics.vtype.VFloatArray;
11 import org.epics.vtype.VTypeToString;
12 import org.epics.util.array.ArrayFloat;
13 import org.epics.util.array.ArrayInt;
14 import org.epics.util.array.ListFloat;
15 import org.epics.util.array.ListInt;
16 import org.epics.vtype.ArrayDimensionDisplay;
17 import org.epics.vtype.ValueUtil;
18
19
20
21
22
23 class VFloatArrayFromDbr extends VNumberMetadata<DBR_TIME_Float, DBR_CTRL_Double> implements VFloatArray {
24
25 public VFloatArrayFromDbr(DBR_TIME_Float dbrValue, DBR_CTRL_Double metadata, JCAConnectionPayload connPayload) {
26 super(dbrValue, metadata, connPayload);
27 }
28
29 @Override
30 public ListInt getSizes() {
31 return new ArrayInt(dbrValue.getFloatValue().length);
32 }
33
34 @Override
35 public ListFloat getData() {
36 return new ArrayFloat(dbrValue.getFloatValue());
37 }
38
39 @Override
40 public String toString() {
41 return VTypeToString.toString(this);
42 }
43
44 @Override
45 public List<ArrayDimensionDisplay> getDimensionDisplay() {
46 return ValueUtil.defaultArrayDisplay(this);
47 }
48
49 }