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); }