public RequestControl setAs(RequestControl value)
        {
            m_MsgHeader = value.m_MsgHeader;
            m_Body      = value.m_Body;

            return(this);
        }
        public RequestControl(RequestControl value)
        {
            /// Initiliaze the protected variables
            m_MsgHeader = new MsgHeader();
            m_Body      = new Body();
            m_IsCommand = true;

            /// Copy the values
            m_MsgHeader = value.m_MsgHeader;
            m_Body      = value.m_Body;
        }
        public bool  isEqual(RequestControl value)
        {
            if (!this.getMsgHeader().isEqual(value.getMsgHeader()))
            {
                return(false);
            }
            if (!this.getBody().isEqual(value.getBody()))
            {
                return(false);
            }

            return(true);
        }
        public virtual void sendRequestControlAction()
        {
            // what should really happen here is that an internal event is called, so that
            // the send happens inside of a sendAction(), rather than here.

            // Now, we need to send a RequestComponentControl to the management service
            RequestControl request_control_msg = new RequestControl();

            request_control_msg.getBody().getRequestControlRec().setAuthorityCode(200);

            // send a message, to this subsystem, this node, component 11.
            // Again, discovery should be used to find the JAUS ID of the service we want to
            // address, rather than hardcoding the address
            JausAddress dest = new JausAddress(jausRouter.getJausAddress().getSubsystemID(),
                                               jausRouter.getJausAddress().getNodeID(),
                                               (byte)160);

            sendJausMessage(request_control_msg, dest);
        }
 public bool  notEquals(RequestControl value)
 {
     return(!this.isEqual(value));
 }