Esempio n. 1
0
        internal void Initialize(FloorConfiguration floorConfiguration, IDoor door)
        {
            _floorConfig = floorConfiguration;
            _door        = door;

            SuscribeEvents();
        }
Esempio n. 2
0
        private static void InitializeProgram(int currentParkedFloorValue, out ILift lift)
        {
            FloorConfiguration floorConfig = new FloorConfiguration(currentParkedFloorValue, MINFLOOR, MAXFLOOR);
            IExecutionPlan     plan        = new ExecutionPlan();

            lift = new Lift(floorConfig, plan);
        }
 private static void InitializeProgram(int currentParkedFloorValue)
 {
     FloorConfiguration floorConfig = new FloorConfiguration(currentParkedFloorValue, liftMinFloor0Based, liftMaxFloor0Based);
     IDoor door = new Door(new TimeConfiguration(2500));
     ILift lift = new Lift(floorConfig, door);
 }
Esempio n. 4
0
 public Lift(FloorConfiguration floorConfiguration, IExecutionPlan executionPlan)
 {
     _floorConfiguration = floorConfiguration;
     _executionPlan      = executionPlan;
 }
Esempio n. 5
0
 public Lift(FloorConfiguration floorConfiguration, IDoor door)
 {
     Initialize(floorConfiguration, door);
 }