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;
  }
示例#2
0
  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;
  }
  public int getMarshalledSize() {
    int marshalSize = 0;

    marshalSize = super.getMarshalledSize();
    marshalSize = marshalSize + minefieldID.getMarshalledSize(); // minefieldID
    marshalSize = marshalSize + requestingEntityID.getMarshalledSize(); // requestingEntityID
    marshalSize = marshalSize + 1; // requestID
    marshalSize = marshalSize + 1; // numberOfPerimeterPoints
    marshalSize = marshalSize + 1; // pad2
    marshalSize = marshalSize + 1; // numberOfSensorTypes
    marshalSize = marshalSize + 4; // dataFilter
    marshalSize = marshalSize + requestedMineType.getMarshalledSize(); // requestedMineType
    for (int idx = 0; idx < requestedPerimeterPoints.size(); idx++) {
      Point listElement = requestedPerimeterPoints.get(idx);
      marshalSize = marshalSize + listElement.getMarshalledSize();
    }
    for (int idx = 0; idx < sensorTypes.size(); idx++) {
      TwoByteChunk listElement = sensorTypes.get(idx);
      marshalSize = marshalSize + listElement.getMarshalledSize();
    }

    return marshalSize;
  }
  public int getMarshalledSize() {
    int marshalSize = 0;

    marshalSize = marshalSize + 1; // recordType
    marshalSize = marshalSize + 1; // changeIndicator
    marshalSize = marshalSize + 1; // associationStatus
    marshalSize = marshalSize + 1; // associationType
    marshalSize = marshalSize + entityID.getMarshalledSize(); // entityID
    marshalSize = marshalSize + 2; // ownStationLocation
    marshalSize = marshalSize + 1; // physicalConnectionType
    marshalSize = marshalSize + 1; // groupMemberType
    marshalSize = marshalSize + 2; // groupNumber

    return marshalSize;
  }
  public int getMarshalledSize() {
    int marshalSize = 0;

    marshalSize = super.getMarshalledSize();
    marshalSize = marshalSize + entityId.getMarshalledSize(); // entityId
    marshalSize = marshalSize + 2; // communicationsDeviceID
    marshalSize = marshalSize + 2; // encodingScheme
    marshalSize = marshalSize + 2; // tdlType
    marshalSize = marshalSize + 4; // sampleRate
    marshalSize = marshalSize + 2; // dataLength
    marshalSize = marshalSize + 2; // samples
    for (int idx = 0; idx < data.size(); idx++) {
      OneByteChunk listElement = data.get(idx);
      marshalSize = marshalSize + listElement.getMarshalledSize();
    }

    return marshalSize;
  }