Пример #1
0
                public bool isEqual(BroadcastRec value)
                {
                    if (m_PresenceVector != value.m_PresenceVector)
                    {
                        return(false);
                    }

                    if (!this.getDestinationID().isEqual(value.getDestinationID()))
                    {
                        return(false);
                    }

                    if (!this.getSourceID().isEqual(value.getSourceID()))
                    {
                        return(false);
                    }
                    if (this.getPriority() != value.getPriority())
                    {
                        return(false);
                    }

                    if (!this.getMessagePayload().isEqual(value.getMessagePayload()))
                    {
                        return(false);
                    }

                    return(true);
                }
Пример #2
0
                public BroadcastGlobal.Body.BroadcastRec  setBroadcastRec(BroadcastRec value)
                {
                    m_PresenceVector = value.m_PresenceVector;
                    m_DestinationID  = value.getDestinationID();
                    m_SourceID       = value.getSourceID();
                    m_Priority       = value.m_Priority;
                    m_MessagePayload = value.getMessagePayload();

                    return(this);
                }
Пример #3
0
                public BroadcastRec(BroadcastRec value)
                {
                    /// Initiliaze the protected variables
                    m_parent         = null;
                    m_PresenceVector = 0;
                    m_DestinationID  = new DestinationID();
                    m_DestinationID.setParent(this);
                    m_SourceID = new SourceID();
                    m_SourceID.setParent(this);
                    m_Priority       = 0;
                    m_MessagePayload = new MessagePayload();
                    m_MessagePayload.setParent(this);

                    /// Copy the values
                    m_PresenceVector = value.m_PresenceVector;
                    m_DestinationID  = value.getDestinationID();
                    m_SourceID       = value.getSourceID();
                    m_Priority       = value.m_Priority;
                    m_MessagePayload = value.getMessagePayload();
                }
Пример #4
0
                public BroadcastLocal.Body.BroadcastRec setBroadcastRec(BroadcastRec value)
                {
                    m_PresenceVector = value.m_PresenceVector;
                    m_DestinationID = value.getDestinationID();
                    m_SourceID = value.getSourceID();
                    m_Priority = value.m_Priority;
                    m_MessagePayload = value.getMessagePayload();

                    return this;
                }
Пример #5
0
                public bool isEqual(BroadcastRec value)
                {
                    if (m_PresenceVector != value.m_PresenceVector)
                    {
                    return false;
                    }

                    if (!this.getDestinationID().isEqual(value.getDestinationID()))
                    {
                    return false;
                    }

                    if (!this.getSourceID().isEqual(value.getSourceID()))
                    {
                    return false;
                    }
                    if (this.getPriority() != value.getPriority())
                    {
                    return false;
                    }

                    if (!this.getMessagePayload().isEqual(value.getMessagePayload()))
                    {
                    return false;
                    }

                    return true;
                }
Пример #6
0
                public BroadcastRec(BroadcastRec value)
                {
                    /// Initiliaze the protected variables
                    m_parent = null;
                    m_PresenceVector = 0;
                    m_DestinationID = new DestinationID();
                    m_DestinationID.setParent(this);
                    m_SourceID = new SourceID();
                    m_SourceID.setParent(this);
                    m_Priority = 0;
                    m_MessagePayload = new MessagePayload();
                    m_MessagePayload.setParent(this);

                    /// Copy the values
                    m_PresenceVector = value.m_PresenceVector;
                    m_DestinationID = value.getDestinationID();
                    m_SourceID = value.getSourceID();
                    m_Priority = value.m_Priority;
                    m_MessagePayload = value.getMessagePayload();
                }