Beispiel #1
0
 public JobConverter(
     EntityGenerator <IJob> factory,
     SkillConverter skillConverter,
     ToolConverter toolConverter,
     ZoneConverter zoneConverter) : base(factory)
 {
     _skillConverter = skillConverter;
     _toolConverter  = toolConverter;
     _zoneConverter  = zoneConverter;
 }
        public ShiftManager(
            ShiftConverter shiftConverter,
            SkillConverter skillConverter,
            LaborConverter laborConverter,
            ToolConverter toolConverter)
        {
            _shiftConverter = shiftConverter;
            _skillConverter = skillConverter;
            _laborConverter = laborConverter;
            _toolConverter = toolConverter;

            InitializeShifts();
            InitializeSkills();
            InitializeWorkers();
            InitializeTools();

            ShiftWorkerManager = new Dictionary<IShift, WorkerManager>();
            ShiftToolManager = new Dictionary<IShift, ToolManager>();
        }
Beispiel #3
0
        public ShiftManager(
            ShiftConverter shiftConverter,
            SkillConverter skillConverter,
            LaborConverter laborConverter,
            ToolConverter toolConverter)
        {
            _shiftConverter = shiftConverter;
            _skillConverter = skillConverter;
            _laborConverter = laborConverter;
            _toolConverter  = toolConverter;

            InitializeShifts();
            InitializeSkills();
            InitializeWorkers();
            InitializeTools();

            ShiftWorkerManager = new Dictionary <IShift, WorkerManager>();
            ShiftToolManager   = new Dictionary <IShift, ToolManager>();
        }
        public SolverDataManager(ProjectDataSet model, ConstraintSolverResult data)
        {
            _model        = model;
            _solverResult = data;

            var jobFactory    = new JobFactory();
            var skillFactory  = new SkillFactory();
            var workerFactory = new WorkerFactory();
            var toolFactory   = new ToolFactory();
            var zoneFactory   = new ZoneFactory();
            var shiftFactory  = new ShiftFactory();

            var shiftConverter = new ShiftConverter(shiftFactory);
            var skillConverter = new SkillConverter(skillFactory);
            var toolConverter  = new ToolConverter(toolFactory, shiftConverter);
            var zoneConverter  = new ZoneConverter(zoneFactory);
            var laborConverter = new LaborConverter(workerFactory, shiftConverter, skillConverter);
            var jobConverter   = new JobConverter(jobFactory, skillConverter, toolConverter, zoneConverter);

            _shiftManager = new ShiftManager(shiftConverter, skillConverter, laborConverter, toolConverter);
            _jobManager   = new JobManager(jobConverter);
            _zoneManager  = new ZoneManager(zoneConverter);
        }
        public SolverDataManager(ProjectDataSet model, ConstraintSolverResult data)
        {
            _model = model;
            _solverResult = data;

            var jobFactory = new JobFactory();
            var skillFactory = new SkillFactory();
            var workerFactory = new WorkerFactory();
            var toolFactory = new ToolFactory();
            var zoneFactory = new ZoneFactory();
            var shiftFactory = new ShiftFactory();
            
            var shiftConverter = new ShiftConverter(shiftFactory);
            var skillConverter = new SkillConverter(skillFactory);
            var toolConverter = new ToolConverter(toolFactory, shiftConverter);
            var zoneConverter = new ZoneConverter(zoneFactory);
            var laborConverter = new LaborConverter(workerFactory, shiftConverter, skillConverter);
            var jobConverter = new JobConverter(jobFactory, skillConverter, toolConverter, zoneConverter);

            _shiftManager = new ShiftManager(shiftConverter, skillConverter, laborConverter, toolConverter);
            _jobManager = new JobManager(jobConverter);
            _zoneManager = new ZoneManager(zoneConverter);
        }
Beispiel #6
0
 private void InitializeSkills()
 {
     _skills         = new ConcurrentDictionary <string, ISkill>();
     _skillFactory   = new SkillFactory();
     _skillConverter = new SkillConverter(_skillFactory);
 }
Beispiel #7
0
    public void AttackDebug(int skillId)
    {
        SkillData data = SkillConverter.GetSkill(skillId);

        Attack(data);
    }
Beispiel #8
0
    public void OnInputEnd(List <int> numberList)
    {
        SkillData data = SkillConverter.GetSkill(numberList);

        Attack(data);
    }
 private void InitializeSkills()
 {
     _skills = new ConcurrentDictionary<string, ISkill>();
     _skillFactory = new SkillFactory();
     _skillConverter = new SkillConverter(_skillFactory);
 }