Class BinaryDynamicObject
java.lang.Object
de.bsvrz.puk.config.configFile.fileaccess.BinaryObject
de.bsvrz.puk.config.configFile.fileaccess.BinaryDynamicObject
public class BinaryDynamicObject extends BinaryObject
Binäres dynamisches Objekt
- See Also:
BinaryObject
-
Field Summary
Fields inherited from class de.bsvrz.puk.config.configFile.fileaccess.BinaryObject
CONFIG_OBJ_HEADER_SIZE, CONFIGURATION_OBJECT_TYPE, DYN_OBJ_HEADER_SIZE, DYNAMIC_OBJECT_TYPE
-
Constructor Summary
Constructors Constructor Description BinaryDynamicObject(long objectId, int pidHashCode, long typeId, long firstInvalid, long firstValid, short simulationVariant, byte[] packedBytes)
-
Method Summary
Modifier and Type Method Description long
getFirstInvalid()
long
getFirstValid()
long
getObjectId()
Gibt die Objekt-ID zurückbyte[]
getPackedBytes()
Gibt die gepackten Bytes zurück.int
getPidHashCode()
Gibt den Pid-Hashcode zurückshort
getSimulationVariant()
long
getTypeId()
Gibt die ID des Objekttyps zuückDynamicObjectInformation
toSystemObjectInfo(ConfigAreaFile file, long position)
int
write(java.io.DataOutput output)
Schreibt das Objekt in den Ausgabe-StreamMethods inherited from class de.bsvrz.puk.config.configFile.fileaccess.BinaryObject
fromDataInput
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BinaryDynamicObject
public BinaryDynamicObject(long objectId, int pidHashCode, long typeId, long firstInvalid, long firstValid, short simulationVariant, byte[] packedBytes)
-
-
Method Details
-
getObjectId
public long getObjectId()Description copied from class:BinaryObject
Gibt die Objekt-ID zurück- Specified by:
getObjectId
in classBinaryObject
- Returns:
- die Objekt-ID oder 0 falls es sich um eine Lücke handelt
-
getPidHashCode
public int getPidHashCode()Description copied from class:BinaryObject
Gibt den Pid-Hashcode zurück- Specified by:
getPidHashCode
in classBinaryObject
- Returns:
- den Pid-Hashcode
-
getTypeId
public long getTypeId()Description copied from class:BinaryObject
Gibt die ID des Objekttyps zuück- Specified by:
getTypeId
in classBinaryObject
- Returns:
- die ID des Objekttyps
-
getFirstInvalid
public long getFirstInvalid() -
getFirstValid
public long getFirstValid() -
getSimulationVariant
public short getSimulationVariant() -
getPackedBytes
public byte[] getPackedBytes()Description copied from class:BinaryObject
Gibt die gepackten Bytes zurück. Die gepackten Bytes enthalten weitere Objektinformationen wie die Name, Pid, Konfigurationsdaten usw.- Specified by:
getPackedBytes
in classBinaryObject
- Returns:
- die gepackten Bytes
-
write
public int write(java.io.DataOutput output) throws java.io.IOExceptionDescription copied from class:BinaryObject
Schreibt das Objekt in den Ausgabe-Stream- Specified by:
write
in classBinaryObject
- Parameters:
output
- Ausgabe- Returns:
- Anzahl geschriebener Bytes
- Throws:
java.io.IOException
-
toSystemObjectInfo
public DynamicObjectInformation toSystemObjectInfo(ConfigAreaFile file, long position) throws java.io.IOException, de.bsvrz.sys.funclib.dataSerializer.NoSuchVersionException- Specified by:
toSystemObjectInfo
in classBinaryObject
- Throws:
java.io.IOException
de.bsvrz.sys.funclib.dataSerializer.NoSuchVersionException
-