public int getMarshalledSize() { int marshalSize = 0; marshalSize = super.getMarshalledSize(); marshalSize = marshalSize + minefieldID.getMarshalledSize(); // minefieldID marshalSize = marshalSize + requestingEntityID.getMarshalledSize(); // requestingEntityID marshalSize = marshalSize + 2; // minefieldSequenceNumbeer marshalSize = marshalSize + 1; // requestID marshalSize = marshalSize + 1; // pduSequenceNumber marshalSize = marshalSize + 1; // numberOfPdus marshalSize = marshalSize + 1; // numberOfMinesInThisPdu marshalSize = marshalSize + 1; // numberOfSensorTypes marshalSize = marshalSize + 1; // pad2 marshalSize = marshalSize + 4; // dataFilter marshalSize = marshalSize + mineType.getMarshalledSize(); // mineType for (int idx = 0; idx < sensorTypes.size(); idx++) { TwoByteChunk listElement = sensorTypes.get(idx); marshalSize = marshalSize + listElement.getMarshalledSize(); } marshalSize = marshalSize + 1; // pad3 for (int idx = 0; idx < mineLocation.size(); idx++) { Vector3Float listElement = mineLocation.get(idx); marshalSize = marshalSize + listElement.getMarshalledSize(); } return marshalSize; }
public int getMarshalledSize() { int marshalSize = 0; marshalSize = super.getMarshalledSize(); marshalSize = marshalSize + orginatingEntityID.getMarshalledSize(); // orginatingEntityID marshalSize = marshalSize + receivingEntityID.getMarshalledSize(); // receivingEntityID marshalSize = marshalSize + relationship.getMarshalledSize(); // relationship marshalSize = marshalSize + partLocation.getMarshalledSize(); // partLocation marshalSize = marshalSize + namedLocationID.getMarshalledSize(); // namedLocationID marshalSize = marshalSize + partEntityType.getMarshalledSize(); // partEntityType return marshalSize; }