public class BinaryDynamicObject extends BinaryObject
Binäres dynamisches Objekt
BinaryObject
Modifier and Type | Field and Description |
---|---|
private long |
_firstInvalid |
private long |
_firstValid |
private long |
_objectId |
private byte[] |
_packedBytes |
private int |
_pidHashCode |
private short |
_simulationVariant |
private long |
_typeId |
CONFIG_OBJ_HEADER_SIZE, CONFIGURATION_OBJECT_TYPE, DYN_OBJ_HEADER_SIZE, DYNAMIC_OBJECT_TYPE
Constructor and Description |
---|
BinaryDynamicObject(long objectId,
int pidHashCode,
long typeId,
long firstInvalid,
long firstValid,
short simulationVariant,
byte[] packedBytes) |
Modifier and Type | Method and Description |
---|---|
long |
getFirstInvalid() |
long |
getFirstValid() |
long |
getObjectId()
Gibt die Objekt-ID zurück
|
byte[] |
getPackedBytes()
Gibt die gepackten Bytes zurück.
|
int |
getPidHashCode()
Gibt den Pid-Hashcode zurück
|
short |
getSimulationVariant() |
long |
getTypeId()
Gibt die ID des Objekttyps zuück
|
SystemObjectInformationInterface |
toSystemObjectInfo(ConfigAreaFile file,
long position) |
int |
write(java.io.DataOutput output)
Schreibt das Objekt in den Ausgabe-Stream
|
fromDataInput
private final long _objectId
private final int _pidHashCode
private final long _typeId
private final long _firstInvalid
private final long _firstValid
private final short _simulationVariant
private final byte[] _packedBytes
public BinaryDynamicObject(long objectId, int pidHashCode, long typeId, long firstInvalid, long firstValid, short simulationVariant, byte[] packedBytes)
public long getObjectId()
BinaryObject
Gibt die Objekt-ID zurück
getObjectId
in class BinaryObject
public int getPidHashCode()
BinaryObject
Gibt den Pid-Hashcode zurück
getPidHashCode
in class BinaryObject
public long getTypeId()
BinaryObject
Gibt die ID des Objekttyps zuück
getTypeId
in class BinaryObject
public long getFirstInvalid()
public long getFirstValid()
public short getSimulationVariant()
public byte[] getPackedBytes()
BinaryObject
Gibt die gepackten Bytes zurück. Die gepackten Bytes enthalten weitere Objektinformationen wie die Name, Pid, Konfigurationsdaten usw.
getPackedBytes
in class BinaryObject
public int write(java.io.DataOutput output) throws java.io.IOException
BinaryObject
Schreibt das Objekt in den Ausgabe-Stream
write
in class BinaryObject
output
- Ausgabejava.io.IOException
public SystemObjectInformationInterface toSystemObjectInfo(ConfigAreaFile file, long position) throws java.io.IOException, NoSuchVersionException
toSystemObjectInfo
in class BinaryObject
java.io.IOException
NoSuchVersionException