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

Method population

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

returns a Stream of potential boxes that we can execute. Subclass to constrain further, but by default it's all of the children of this timeslider's first parent that have Manipulation.frames that aren't this box --- i.e. all the siblings of this box

()

Source from the content-addressed store, hash-verified

293 });
294
295 }
296
297 /**
298 * returns a Stream of potential boxes that we can execute. Subclass to constrain further, but by default it's all of the children of this
299 * timeslider's first parent that have Manipulation.frames that aren't this box --- i.e. all the siblings of this box
300 */
301 protected Stream<Box> population() {
302 return parents().iterator()
303 .next()
304 .breadthFirst(this.downwards())
305 .filter(x -> !x.properties.isTrue(Chorder.nox,
306 x.properties.has(Drawing.windowSpace) ||
307 x.properties.has(Drawing.windowScale)))
308 .filter(x -> Planes.on(parents().iterator().next(), x) >= 0.5)
309 .filter(x -> x.properties.has(frame))
310 .filter(x -> x != this);

Callers 2

performMethod · 0.95
intersectsWithMethod · 0.95

Calls 8

onMethod · 0.95
parentsMethod · 0.80
breadthFirstMethod · 0.80
downwardsMethod · 0.80
isTrueMethod · 0.80
nextMethod · 0.65
iteratorMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected