@@ 140-149 (lines=10) @@ | ||
137 | * @return Path[][] Two-dimensional array of Path objects. |
|
138 | * @throws Exception Method throws exception when generate() method throws exception. |
|
139 | */ |
|
140 | public function generateAll() |
|
141 | { |
|
142 | $generated = array(); |
|
143 | ||
144 | foreach ($this->points as $index => $point) { |
|
145 | $generated[$index] = $this->generate($point); |
|
146 | } |
|
147 | ||
148 | return $generated; |
|
149 | } |
|
150 | ||
151 | /** |
|
152 | * Method generates path for given Point object or point id. It's not watching for existing cache. |
|
@@ 207-216 (lines=10) @@ | ||
204 | * @return Path[][] Two-dimensional array of Path objects. |
|
205 | * @throws Exception Method throws exception when generate() method throws exception. |
|
206 | */ |
|
207 | public function generateForceAll() |
|
208 | { |
|
209 | $generated = array(); |
|
210 | ||
211 | foreach ($this->points as $index => $point) { |
|
212 | $generated[$index] = $this->generateForce($point); |
|
213 | } |
|
214 | ||
215 | return $generated; |
|
216 | } |
|
217 | ||
218 | /** |
|
219 | * Method try to find minimal relation to another point from given point. |