|
4 | 4 |
|
5 | 5 | trait SchedulerConfigTrait |
6 | 6 | { |
| 7 | + public const SCHEDULER_DAY_SECONDS = 60 * 60 * 24; // 86400 |
| 8 | + protected const SCHEDULER_DATETIME_FORMAT = 'Y-m-d H:i:s'; |
| 9 | + protected const SCHEDULER_DATE_FORMAT = 'Y-m-d'; |
| 10 | + |
| 11 | + public string $year; |
| 12 | + public string $month; |
| 13 | + public AssemblelyGroups $group; |
| 14 | + public string $groupName; |
| 15 | + public array $defaultDayCalendar; |
| 16 | + // Equal division quantity |
| 17 | + public int $EDQ; |
| 18 | + // Max cost time compute |
| 19 | + public bool $MCTC; |
| 20 | + // Sup phase compute first |
| 21 | + public bool $SPCF; |
| 22 | + public string $initialPhase; |
| 23 | + public bool $singlePhase; |
| 24 | + // Initial schedule datetime |
| 25 | + public string $ISDT; |
| 26 | + // Initial schedule timestamp |
| 27 | + public int $ISTS; |
| 28 | + public bool $isUseCalendar; |
| 29 | + public bool $isUseTPMCalendar; |
| 30 | + // is use multiple shifts compute |
| 31 | + public bool $isUseMSC; |
| 32 | + public array $monthCalendar; |
| 33 | + public array $nextMonthCalendar; |
| 34 | + public array $prevMonthCalendar; |
| 35 | + public array $dayCalendar; |
| 36 | + public array $nextDayCalendar; |
| 37 | + public array $prevDayCalendar; |
| 38 | + |
| 39 | + public function init(array $config) |
| 40 | + { |
| 41 | + $this->parseConfig($config); |
| 42 | + } |
| 43 | + |
| 44 | + private function parseConfig(array $config) |
| 45 | + { |
| 46 | + } |
| 47 | + |
| 48 | + public function getConfig(): array |
| 49 | + { |
| 50 | + return []; |
| 51 | + } |
| 52 | + |
| 53 | + public function getGroup(): AssemblelyGroups |
| 54 | + { |
| 55 | + return $this->group; |
| 56 | + } |
| 57 | + |
| 58 | + public function getGroupName(): string |
| 59 | + { |
| 60 | + return $this->groupName; |
| 61 | + } |
| 62 | + |
| 63 | + public function getDefaultDayCalendar(): array |
| 64 | + { |
| 65 | + return $this->defaultDayCalendar; |
| 66 | + } |
| 67 | + |
| 68 | + public function getEDQ(): int |
| 69 | + { |
| 70 | + return $this->EDQ; |
| 71 | + } |
| 72 | + |
| 73 | + public function getMCTC(): bool |
| 74 | + { |
| 75 | + return $this->MCTC; |
| 76 | + } |
| 77 | + |
| 78 | + public function getSPCF(): bool |
| 79 | + { |
| 80 | + return $this->SPCF; |
| 81 | + } |
| 82 | + |
| 83 | + public function getISDT(): bool |
| 84 | + { |
| 85 | + return $this->ISDT; |
| 86 | + } |
| 87 | + |
| 88 | + public function getISTS(): bool |
| 89 | + { |
| 90 | + return $this->ISTS; |
| 91 | + } |
| 92 | + |
| 93 | + public function getSinglePhase(): bool |
| 94 | + { |
| 95 | + return $this->singlePhase; |
| 96 | + } |
| 97 | + |
| 98 | + public function getUseMSC(): bool |
| 99 | + { |
| 100 | + return $this->isUseMSC; |
| 101 | + } |
| 102 | + |
| 103 | + public function getUseCalendar(): bool |
| 104 | + { |
| 105 | + return $this->isUseCalendar; |
| 106 | + } |
| 107 | + |
| 108 | + public function getUseTPMS(): bool |
| 109 | + { |
| 110 | + return $this->isUseTPMCalendar; |
| 111 | + } |
| 112 | + |
| 113 | + public function getInitialPhase(): string |
| 114 | + { |
| 115 | + return $this->initialPhase; |
| 116 | + } |
| 117 | + |
| 118 | + public function getInitialPhaseInfo(): array |
| 119 | + { |
| 120 | + return []; |
| 121 | + } |
| 122 | + |
| 123 | + public function getDayCalendar(): array |
| 124 | + { |
| 125 | + return []; |
| 126 | + } |
| 127 | + |
| 128 | + public function getNextDayCalendar(): array |
| 129 | + { |
| 130 | + return []; |
| 131 | + } |
| 132 | + |
| 133 | + public function getPreviousDayCalendar(): array |
| 134 | + { |
| 135 | + return []; |
| 136 | + } |
| 137 | + |
| 138 | + public function getMonthCalendar(): array |
| 139 | + { |
| 140 | + return []; |
| 141 | + } |
| 142 | + |
| 143 | + public function getNextMonthCalendar(): array |
| 144 | + { |
| 145 | + return []; |
| 146 | + } |
| 147 | + |
| 148 | + public function getPreviousMonthCalendar(): array |
| 149 | + { |
| 150 | + return []; |
| 151 | + } |
7 | 152 | } |
0 commit comments