Пример #1
0
        new public int getMarshalledSize()
        {
            int marshalSize = 0;

            marshalSize = base.getMarshalledSize();
            marshalSize = marshalSize + 1;  // _requiredReliabilityService
            marshalSize = marshalSize + 2;  // _pad1
            marshalSize = marshalSize + 1;  // _pad2
            marshalSize = marshalSize + 4;  // _requestID
            marshalSize = marshalSize + 4;  // _timeInterval
            marshalSize = marshalSize + 4;  // _numberOfFixedDatumRecords
            marshalSize = marshalSize + 4;  // _numberOfVariableDatumRecords
            for (int idx = 0; idx < _fixedDatumRecords.Count; idx++)
            {
                FixedDatum listElement = (FixedDatum)_fixedDatumRecords[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }
            for (int idx = 0; idx < _variableDatumRecords.Count; idx++)
            {
                VariableDatum listElement = (VariableDatum)_variableDatumRecords[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }

            return(marshalSize);
        }
Пример #2
0
        new public int getMarshalledSize()
        {
            int marshalSize = 0;

            marshalSize = base.getMarshalledSize();
            marshalSize = marshalSize + _aggregateID.getMarshalledSize();      // _aggregateID
            marshalSize = marshalSize + 1;                                     // _forceID
            marshalSize = marshalSize + 1;                                     // _aggregateState
            marshalSize = marshalSize + _aggregateType.getMarshalledSize();    // _aggregateType
            marshalSize = marshalSize + 4;                                     // _formation
            marshalSize = marshalSize + _aggregateMarking.getMarshalledSize(); // _aggregateMarking
            marshalSize = marshalSize + _dimensions.getMarshalledSize();       // _dimensions
            marshalSize = marshalSize + _orientation.getMarshalledSize();      // _orientation
            marshalSize = marshalSize + _centerOfMass.getMarshalledSize();     // _centerOfMass
            marshalSize = marshalSize + _velocity.getMarshalledSize();         // _velocity
            marshalSize = marshalSize + 2;                                     // _numberOfDisAggregates
            marshalSize = marshalSize + 2;                                     // _numberOfDisEntities
            marshalSize = marshalSize + 2;                                     // _numberOfSilentAggregateTypes
            marshalSize = marshalSize + 2;                                     // _numberOfSilentEntityTypes
            for (int idx = 0; idx < _aggregateIDList.Count; idx++)
            {
                AggregateID listElement = (AggregateID)_aggregateIDList[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }
            for (int idx = 0; idx < _entityIDList.Count; idx++)
            {
                EntityID listElement = (EntityID)_entityIDList[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }
            marshalSize = marshalSize + 1; // _pad2
            for (int idx = 0; idx < _silentAggregateSystemList.Count; idx++)
            {
                EntityType listElement = (EntityType)_silentAggregateSystemList[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }
            for (int idx = 0; idx < _silentEntitySystemList.Count; idx++)
            {
                EntityType listElement = (EntityType)_silentEntitySystemList[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }
            marshalSize = marshalSize + 4; // _numberOfVariableDatumRecords
            for (int idx = 0; idx < _variableDatumList.Count; idx++)
            {
                VariableDatum listElement = (VariableDatum)_variableDatumList[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }

            return(marshalSize);
        }
Пример #3
0
        new public int getMarshalledSize()
        {
            int marshalSize = 0;

            marshalSize = base.getMarshalledSize();
            marshalSize = marshalSize + _groupEntityID.getMarshalledSize(); // _groupEntityID
            marshalSize = marshalSize + 1;                                  // _groupedEntityCategory
            marshalSize = marshalSize + 1;                                  // _numberOfGroupedEntities
            marshalSize = marshalSize + 4;                                  // _pad2
            marshalSize = marshalSize + 8;                                  // _latitude
            marshalSize = marshalSize + 8;                                  // _longitude
            for (int idx = 0; idx < _groupedEntityDescriptions.Count; idx++)
            {
                VariableDatum listElement = (VariableDatum)_groupedEntityDescriptions[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }

            return(marshalSize);
        }
Пример #4
0
        new public int getMarshalledSize()
        {
            int marshalSize = 0;

            marshalSize = base.getMarshalledSize();
            marshalSize = marshalSize + 4;  // _numberOfFixedDatumRecords
            marshalSize = marshalSize + 4;  // _numberOfVariableDatumRecords
            for (int idx = 0; idx < _fixedDatumRecords.Count; idx++)
            {
                FixedDatum listElement = (FixedDatum)_fixedDatumRecords[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }
            for (int idx = 0; idx < _variableDatumRecords.Count; idx++)
            {
                VariableDatum listElement = (VariableDatum)_variableDatumRecords[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }

            return(marshalSize);
        }