payloadBuffer.putDouble(array[i]); else if (dataType.isINT())
payloadBuffer.putDouble(array[i]); else if (dataType.isINT())
private static boolean dbrTypeMatch(DBRType aType, DBRType anotherType) { if (aType.getClass() == null && anotherType.getClass() != null) { return false; } if (aType.getClass() != null && anotherType.getClass() == null) { return false; } return aType.isBYTE() && anotherType.isBYTE() || aType.isDOUBLE() && anotherType.isDOUBLE() || aType.isENUM() && anotherType.isENUM() || aType.isFLOAT() && anotherType.isFLOAT() || aType.isINT() && anotherType.isINT() || aType.isSHORT() && anotherType.isSHORT() || aType.isSTRING() && anotherType.isSTRING(); }
private static boolean dbrTypeMatch(DBRType aType, DBRType anotherType) { if (aType.getClass() == null && anotherType.getClass() != null) { return false; } if (aType.getClass() != null && anotherType.getClass() == null) { return false; } return aType.isBYTE() && anotherType.isBYTE() || aType.isDOUBLE() && anotherType.isDOUBLE() || aType.isENUM() && anotherType.isENUM() || aType.isFLOAT() && anotherType.isFLOAT() || aType.isINT() && anotherType.isINT() || aType.isSHORT() && anotherType.isSHORT() || aType.isSTRING() && anotherType.isSTRING(); }
protected DBRType valueTypeFor(Channel channel) { DBRType type = channel.getFieldType(); if (type.isBYTE()) { return DBR_TIME_Byte.TYPE; } else if (type.isSHORT()) { return DBR_TIME_Short.TYPE; } else if (type.isINT()) { return DBR_TIME_Int.TYPE; } else if (type.isFLOAT()) { return DBR_TIME_Float.TYPE; } else if (type.isDOUBLE()) { return DBR_TIME_Double.TYPE; } else if (type.isENUM()) { return DBR_TIME_Enum.TYPE; } else if (type.isSTRING()) { if (jcaDataSource.isRtypValueOnly() && rtypeStringPattern.matcher(channel.getName()).matches()) { return DBR_String.TYPE; } return DBR_TIME_String.TYPE; } throw new IllegalArgumentException("Unsupported type " + type); }
protected DBRType valueTypeFor(Channel channel) { DBRType type = channel.getFieldType(); if (type.isBYTE()) { return DBR_TIME_Byte.TYPE; } else if (type.isSHORT()) { return DBR_TIME_Short.TYPE; } else if (type.isINT()) { return DBR_TIME_Int.TYPE; } else if (type.isFLOAT()) { return DBR_TIME_Float.TYPE; } else if (type.isDOUBLE()) { return DBR_TIME_Double.TYPE; } else if (type.isENUM()) { return DBR_TIME_Enum.TYPE; } else if (type.isSTRING()) { if (jcaDataSource.isRtypValueOnly() && rtypeStringPattern.matcher(channel.getName()).matches()) { return DBR_String.TYPE; } return DBR_TIME_String.TYPE; } throw new IllegalArgumentException("Unsupported type " + type); }
protected DBRType metadataFor(Channel channel) { DBRType type = channel.getFieldType(); if (type.isBYTE() || type.isSHORT() || type.isINT() || type.isFLOAT() || type.isDOUBLE()) return DBR_CTRL_Double.TYPE; if (type.isENUM()) return DBR_LABELS_Enum.TYPE; return null; }
protected DBRType metadataFor(Channel channel) { DBRType type = channel.getFieldType(); if (type.isBYTE() || type.isSHORT() || type.isINT() || type.isFLOAT() || type.isDOUBLE()) return DBR_CTRL_Double.TYPE; if (type.isENUM()) return DBR_LABELS_Enum.TYPE; return null; }
else if (dataType.isINT())
else if (dataType.isINT())
} else if(nativeDBRType.isSHORT()) { scalarType= ScalarType.pvShort; } else if(nativeDBRType.isINT()) { scalarType = ScalarType.pvInt; } else if(nativeDBRType.isFLOAT()) {