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