Example #1
0
File: Job.cs Project: Phireh/VEUS
    //////////////////
    // Constructors //
    //////////////////

    public Job(TYPE jobType, EXTENSION extension, TIME_DEMAND timeDemand, DURATION duration, CityPart.PLACE cityPlace)
    {
        int         quantity             = Global.Values.jobsQuantity[(int)extension, (int)jobType];
        int         salary               = Global.Values.jobsSalary[(int)jobType];
        int         contractedDays       = Global.Values.jobsContractedDays[(int)duration, (int)jobType];
        float       requieredEffortValue = Global.Values.jobsRequieredEffort[(int)timeDemand, (int)jobType];
        JobSchedule newSchedule          = new JobSchedule(Global.Values.jobsStart[(int)jobType],
                                                           Global.Values.jobsWorkingHours[(int)timeDemand, (int)jobType]);

        SetInitialValues(jobType, quantity, salary, contractedDays, newSchedule,
                         requieredEffortValue, extension, timeDemand, duration, cityPlace);
    }
Example #2
0
File: Job.cs Project: Phireh/VEUS
    //////////////////////
    // Auxiliar Methods //
    //////////////////////

    void SetInitialValues(TYPE jobType, int quantity, int salary, int contractedDays, JobSchedule schedule,
                          float requieredEffortValue, EXTENSION extension, TIME_DEMAND timeDemand, DURATION duration, CityPart.PLACE cityPlace)
    {
        CityPlace       = cityPlace;
        JobType         = jobType;
        this.extension  = extension;
        this.timeDemand = timeDemand;
        this.duration   = duration;
        Salary          = salary;
        Quantity        = quantity;
        ContractedDays  = contractedDays;
        Schedule        = schedule;
        RequieredEffort = new ConditionableIndex("Esfuerzo Requerido", "Representacuanto esfuerzo ers necesario para ser "
                                                 + Global.Names.jobs[(int)jobType] + " en el barrio " + Global.Names.cityPart[(int)cityPlace], requieredEffortValue);
    }
Example #3
0
File: Job.cs Project: Phireh/VEUS
 public void SetTimeDemand(TIME_DEMAND timeDemand)
 {
     this.timeDemand       = timeDemand;
     RequieredEffort.Value = Global.Values.jobsRequieredEffort[(int)timeDemand, (int)JobType];;
     Schedule = new JobSchedule(Global.Values.jobsStart[(int)JobType], Global.Values.jobsWorkingHours[(int)timeDemand, (int)JobType]);
 }