示例#1
0
 public RobotState(IProgramExecutionService programExecutionService, IRobot robot, IRobotLog robotLog)
 {
     this.programExecutionService = programExecutionService;
     this.Robot    = robot;
     this.RobotLog = robotLog;
     this.Id       = uniqueId.Id;
     this.Name     = $"Robot {Id}";
 }
示例#2
0
        public ApplicationState(IRobotFactory robotFactory, IProgramExecutionService programExecutionService)
        {
            var robots = robotFactory.GetRegisteredRobots();

            RobotsList.Capacity = robots.Count();

            foreach (var r in robots)
            {
                RobotsList.Add(new RobotState(programExecutionService, r, new RobotLog()));
            }
        }
示例#3
0
 public ProgramService(IProgramExecutionService programExecutionService, IApplicationState state)
 {
     this.State = state;
     this.programExecutionService = programExecutionService;
 }