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