コード例 #1
0
ファイル: SchedulerHousehold.cs プロジェクト: lunaxi7/XTMF
        internal static void CreateHouseholdProjects(this ITashaHousehold household)
        {
            SchedHouseholdData data;

            household.Attach("SData", data = new SchedHouseholdData());
            ProjectSchedule jointOtherSchedule  = new ProjectSchedule();
            ProjectSchedule jointMarketSchedule = new ProjectSchedule();
            Project         jointOtherProject   = new HouseholdProject(household, jointOtherSchedule);
            Project         jointMarketProject  = new HouseholdProject(household, jointMarketSchedule);

            data.JointOtherProject  = jointOtherProject;
            data.JointMarketProject = jointMarketProject;
        }
コード例 #2
0
ファイル: SchedulerPerson.cs プロジェクト: dianatle/XTMF
 internal static void AddHouseholdProjects(this ITashaHousehold household, SchedHouseholdData hdata, Random random)
 {
     household.AddHouseholdProjects( hdata.JointOtherProject.Schedule, random );
     household.AddHouseholdProjects( hdata.JointMarketProject.Schedule, random );
 }
コード例 #3
0
 internal static void AddHouseholdProjects(this ITashaHousehold household, SchedHouseholdData hdata, Random random)
 {
     household.AddHouseholdProjects(hdata.JointOtherProject.Schedule, random);
     household.AddHouseholdProjects(hdata.JointMarketProject.Schedule, random);
 }
コード例 #4
0
ファイル: SchedulerHousehold.cs プロジェクト: Cocotus/XTMF
 internal static void CreateHouseholdProjects(this ITashaHousehold household)
 {
     SchedHouseholdData data;
     household.Attach("SData", data = new SchedHouseholdData());
     ProjectSchedule jointOtherSchedule = new ProjectSchedule(household);
     ProjectSchedule jointMarketSchedule = new ProjectSchedule(household);
     Project jointOtherProject = new HouseholdProject(household, jointOtherSchedule);
     Project jointMarketProject = new HouseholdProject(household, jointMarketSchedule);
     data.JointOtherProject = jointOtherProject;
     data.JointMarketProject = jointMarketProject;
 }