예제 #1
0
        public static AGVMessage newMessage(AGVMessageHandler_TYPE_T type, string str)
        {
            AGVMessage message = new AGVMessage();

            message.message_type = type;
            message.message_str  = str;
            return(message);
        }
예제 #2
0
 public void setMessage(AGVMessage message)
 {
     if (this.message.getMessageType() != message.getMessageType())
     {
         this.message_next = message;                  //下一个要处理的message type与当前的message不一样
         AGVLog.WriteInfo("AGVMessageHandler set message " + message.getMessageStr(), new StackFrame(true));
     }
     else
     {
         AGVLog.WriteInfo("AGVMessageHandler set same message " + message.getMessageStr(), new StackFrame(true));
     }
 }