12345678910111213141516171819202122232425262728293031323334 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Aitex.Core.RT.Fsm;
- namespace Venus_RT.Modules
- {
- class RouteManager : Entity, IEntity
- {
- public bool Check(int msg, out string reason, params object[] args)
- {
- //if (!fsm.FindTransition(fsm.State, msg))
- //{
- // reason = String.Format("{0} is in {1} state,can not do {2}", Name, (RtState)fsm.State, (MSG)msg);
- // return false;
- //}
- //if (msg == (int)MSG.StartCycle)
- //{
- // if (!IsAutoMode)
- // {
- // reason = String.Format("can not do {0}, isn't auto mode.", msg.ToString());
- // return false;
- // }
- //}
- reason = "";
- return true;
- }
- }
- }
|