You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no real reason for shapes to be the only way to determine node contents. Indeed, whether or not some content should be injected is more generally the result of a predicate p of kind (RandomGenerator, Environment, Node) -> Boolean. Current Shapes are just a particular case where this predicate is actually somewhat like: p = { (_, env, node) -> shape.contains(env.getPosition(node)) }.
A more general concept of SubDeploy or ContentFilter should be used instead, with Shapes re-implemented as subclasses.
Also a special ContentFilter could reuse the JSR223 infrastructure and allow for full-fledged scripts to be executed.
The text was updated successfully, but these errors were encountered:
There is no real reason for shapes to be the only way to determine node contents. Indeed, whether or not some content should be injected is more generally the result of a predicate
p
of kind(RandomGenerator, Environment, Node) -> Boolean
. CurrentShape
s are just a particular case where this predicate is actually somewhat like:p = { (_, env, node) -> shape.contains(env.getPosition(node)) }
.A more general concept of
SubDeploy
orContentFilter
should be used instead, withShape
s re-implemented as subclasses.Also a special
ContentFilter
could reuse the JSR223 infrastructure and allow for full-fledged scripts to be executed.The text was updated successfully, but these errors were encountered: