Exemplo n.º 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}";
 }
Exemplo n.º 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()));
            }
        }
Exemplo n.º 3
0
 public ProgramService(IProgramExecutionService programExecutionService, IApplicationState state)
 {
     this.State = state;
     this.programExecutionService = programExecutionService;
 }