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