de.bsvrz.dav.daf.main.impl.config
Class DafDoubleAttributeType

java.lang.Object
  extended by de.bsvrz.dav.daf.main.impl.config.DafSystemObject
      extended by de.bsvrz.dav.daf.main.impl.config.DafConfigurationObject
          extended by de.bsvrz.dav.daf.main.impl.config.DafAttributeType
              extended by de.bsvrz.dav.daf.main.impl.config.DafDoubleAttributeType
All Implemented Interfaces:
AttributeType, ConfigurationObject, DoubleAttributeType, SystemObject, Comparable

public class DafDoubleAttributeType
extends DafAttributeType
implements DoubleAttributeType

Klasse, die den Zugriff auf Fließkomma-Attributtypen seitens der Datenverteiler-Applikationsfunktionen ermöglicht.

Author:
Kappich Systemberatung

Field Summary
private  String _unit
          Die Maßeinheit
 
Fields inherited from class de.bsvrz.dav.daf.main.impl.config.DafAttributeType
_dataValueType
 
Fields inherited from class de.bsvrz.dav.daf.main.impl.config.DafSystemObject
_dataModel, _internType, ASPECT, ATTRIBUTE, ATTRIBUTE_GROUP, ATTRIBUTE_GROUP_USAGE, ATTRIBUTE_LIST_TYPE, CLIENT_APPLICATION, CONFIGURATION_APPLICATION, CONFIGURATION_AREA, CONFIGURATION_AUTHORITY, CONFIGURATION_OBJECT, CONFIGURATION_OBJECT_TYPE, DAV_APPLICATION, DYNAMIC_OBJECT, DYNAMIC_OBJECT_TYPE, FLOATING_POINT_NUMBER_ATTRIBUTE_TYPE, INTEGER_ATTRIBUTE_TYPE, INTEGER_VALUE_RANGE, INTEGER_VALUE_STATE, MUTABLE_SET, NON_MUTABLE_SET, NULL_OBJECT, OBJECT_DELETED, OBJECT_EXISTS, OBJECT_INVALID, OBJECT_SET_TYPE, OBJECT_SET_USE, REFERENCE_ATTRIBUTE_TYPE, STRING_ATTRIBUTE_TYPE, SYSTEM_OBJECT_TYPE, TIME_ATTRIBUTE_TYPE
 
Fields inherited from interface de.bsvrz.dav.daf.main.config.DoubleAttributeType
DOUBLE, FLOAT
 
Constructor Summary
DafDoubleAttributeType(DafDataModel dataModel)
          Erzeugt ein neues Objekt dessen Eigenschaften im Anschluss mit der read-Methode eingelesen werden sollten.
DafDoubleAttributeType(long id, String pid, String name, long typId, byte state, String error, DafDataModel dataModel, short validFromVersionNumber, short validToVersionNumber, long responsibleObjectId, long[] setIds, int mode, String unit, String defaultAttributeValue)
          Erzeugt ein neues Objekt mit den angegebenen Eigenschaften
 
Method Summary
 byte getAccuracy()
          Bestimmt die Genauigkeit von Attributen dieses Typs.
 String getUnit()
          Bestimmt die Maßeinheit von Werten dieses Attributtyps.
 String parseToString()
          Liefert eine textuelle Beschreibung dieses Objekts für Debug-Zwecke zurück.
 void read(DataInputStream in)
          Deserialisiert dieses Objekt.
 void write(DataOutputStream out)
          Serialisiert dieses Objekt.
 
Methods inherited from class de.bsvrz.dav.daf.main.impl.config.DafAttributeType
getDefaultAttributeValue
 
Methods inherited from class de.bsvrz.dav.daf.main.impl.config.DafConfigurationObject
addSet, duplicate, duplicate, getMutableSet, getNonMutableSet, getNotValidSince, getObjectSet, getObjectSets, getValidSince, isValid, removeSet, revalidate
 
Methods inherited from class de.bsvrz.dav.daf.main.impl.config.DafSystemObject
compareTo, equals, getConfigurationArea, getConfigurationAreaId, getConfigurationData, getConfigurationData, getConfigurationData, getDataModel, getId, getInfo, getInternType, getName, getNameOrPidOrId, getObject, getPid, getPidOrId, getPidOrNameOrId, getState, getType, getUsedAttributeGroupUsages, hashCode, invalidate, isOfType, isOfType, setConfigurationData, setConfigurationData, setConfigurationData, setName, setState, storeName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.bsvrz.dav.daf.main.config.AttributeType
getDefaultAttributeValue
 
Methods inherited from interface de.bsvrz.dav.daf.main.config.ConfigurationObject
addSet, duplicate, duplicate, getMutableSet, getNonMutableSet, getNotValidSince, getObjectSet, getObjectSets, getValidSince, removeSet, revalidate
 
Methods inherited from interface de.bsvrz.dav.daf.main.config.SystemObject
getConfigurationArea, getConfigurationData, getConfigurationData, getConfigurationData, getDataModel, getId, getInfo, getName, getNameOrPidOrId, getPid, getPidOrId, getPidOrNameOrId, getType, getUsedAttributeGroupUsages, invalidate, isOfType, isOfType, isValid, setConfigurationData, setConfigurationData, setConfigurationData, setName, toString
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

_unit

private String _unit
Die Maßeinheit

Constructor Detail

DafDoubleAttributeType

public DafDoubleAttributeType(DafDataModel dataModel)
Erzeugt ein neues Objekt dessen Eigenschaften im Anschluss mit der read-Methode eingelesen werden sollten.

Parameters:
dataModel - DataModel Implementierung, der das neue Objekt zugeordnet ist.

DafDoubleAttributeType

public DafDoubleAttributeType(long id,
                              String pid,
                              String name,
                              long typId,
                              byte state,
                              String error,
                              DafDataModel dataModel,
                              short validFromVersionNumber,
                              short validToVersionNumber,
                              long responsibleObjectId,
                              long[] setIds,
                              int mode,
                              String unit,
                              String defaultAttributeValue)
Erzeugt ein neues Objekt mit den angegebenen Eigenschaften

Method Detail

getUnit

public final String getUnit()
Description copied from interface: DoubleAttributeType
Bestimmt die Maßeinheit von Werten dieses Attributtyps.

Specified by:
getUnit in interface DoubleAttributeType
Returns:
Maßeinheit dieses Attributtyps.

getAccuracy

public final byte getAccuracy()
Description copied from interface: DoubleAttributeType
Bestimmt die Genauigkeit von Attributen dieses Typs.

Specified by:
getAccuracy in interface DoubleAttributeType
Returns:
DoubleAttributeType.FLOAT oder DoubleAttributeType.DOUBLE.

parseToString

public final String parseToString()
Description copied from class: DafSystemObject
Liefert eine textuelle Beschreibung dieses Objekts für Debug-Zwecke zurück.

Overrides:
parseToString in class DafConfigurationObject
Returns:
Beschreibender Text dieses Objekts.

write

public final void write(DataOutputStream out)
                 throws IOException
Description copied from class: DafSystemObject
Serialisiert dieses Objekt.

Overrides:
write in class DafAttributeType
Parameters:
out - Stream auf den das Objekt geschrieben werden soll.
Throws:
IOException

read

public final void read(DataInputStream in)
                throws IOException
Description copied from class: DafSystemObject
Deserialisiert dieses Objekt.

Overrides:
read in class DafAttributeType
Parameters:
in - Stream von dem das Objekt gelesen werden soll.
Throws:
IOException