MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / skipForward

Method skipForward

src/main/java/fieldbox/boxes/TimeSlider.java:264–277  ·  view source on GitHub ↗

by default things that we skip over backwards we _do_ run (and then immediately stop).

(Set<Box> skipForward, Map<Box, Double> times)

Source from the content-addressed store, hash-verified

262 */
263 public void beginBox(Box b) {
264 b.first(Execution.execution).ifPresent(x -> x.support(b, Execution.code).begin(b, initiator(b, this.properties.get(frame).x)));
265 }
266
267 /**
268 * by default things that we skip over backwards we _do_ run (and then immediately stop).
269 */
270 protected void skipForward(Set<Box> skipForward, Map<Box, Double> times) {
271 if (disable) return;
272
273 List<Box> son = new ArrayList<>(skipForward);
274 son.sort(Comparator.comparingDouble(a -> a.properties.get(frame).y));
275 son.sort(Comparator.comparingDouble(a -> a.properties.get(frame).x));
276
277
278 son.forEach(b -> {
279 Log.log("debug.execution", () -> " -- FORWARD :" + b);
280 b.first(Execution.execution).ifPresent(x -> x.support(b, Execution.code).begin(b, initiator(b, times.get(b))));

Callers 1

performMethod · 0.95

Calls 8

logMethod · 0.95
initiatorMethod · 0.95
firstMethod · 0.80
getMethod · 0.65
beginMethod · 0.65
endMethod · 0.65
forEachMethod · 0.45
supportMethod · 0.45

Tested by

no test coverage detected