Esempio n. 1
0
        public RegisterServices setAs(RegisterServices value)
        {
            m_MsgHeader            = value.m_MsgHeader;
            m_RegisterServicesBody = value.m_RegisterServicesBody;

            return(this);
        }
Esempio n. 2
0
        public RegisterServices(RegisterServices value)
        {
            /// Initiliaze the protected variables
            m_MsgHeader            = new MsgHeader();
            m_RegisterServicesBody = new RegisterServicesBody();
            m_IsCommand            = true;

            /// Copy the values
            m_MsgHeader            = value.m_MsgHeader;
            m_RegisterServicesBody = value.m_RegisterServicesBody;
        }
Esempio n. 3
0
        public bool  isEqual(RegisterServices value)
        {
            if (!this.getMsgHeader().isEqual(value.getMsgHeader()))
            {
                return(false);
            }
            if (!this.getRegisterServicesBody().isEqual(value.getRegisterServicesBody()))
            {
                return(false);
            }

            return(true);
        }
Esempio n. 4
0
        public virtual void registerServicesAction(Receive.Body.ReceiveRec transportData)
        {
            // Extract the sender information
            JausAddress sender = new JausAddress((ushort)transportData.getSourceID().getSubsystemID(),
                                                 (byte)transportData.getSourceID().getNodeID(),
                                                 (byte)transportData.getSourceID().getComponentID());

            // Found a discovery service.  Register our stuffs with it.
            RegisterServices register_msg = new RegisterServices();

            RegisterServices.RegisterServicesBody.ServiceList.ServiceRec service =
                new RegisterServices.RegisterServicesBody.ServiceList.ServiceRec();
            service.setMinorVersionNumber(1);
            service.setMajorVersionNumber(1);

            // Register local services
            service.setURI("urn:jaus:jss:core:Transport");
            register_msg.getRegisterServicesBody().getServiceList().addElement(service);

            // Send the actual message
            sendJausMessage(register_msg, sender);
        }
Esempio n. 5
0
 public bool  notEquals(RegisterServices value)
 {
     return(!this.isEqual(value));
 }