public interface ExternalConstraint
Modifier and Type | Method and Description |
---|---|
boolean |
addPrunableObjects(GeostObject o,
SimpleHashSet<GeostObject> accumulator)
It adds to the accumulator collection the objects that are likely to be pruned if the given object
changes.
|
Collection<? extends InternalConstraint> |
genInternalConstraints(Geost geost)
It generates internal constraints which will be used by Geost's sweeping
algorithm.
|
Collection<? extends InternalConstraint> |
getObjectConstraints(GeostObject o)
It provides the collection of internal constraints that the given object has to satisfy.
|
GeostObject[] |
getObjectScope()
Provides the collection of objects that this constraint applies to
|
boolean |
isInternalConstraintApplicableTo(InternalConstraint ic,
GeostObject o)
Returns true if the external constraint generated the supplied internal constraint ic, and that ic
applies to object o.
|
void |
onObjectUpdate(GeostObject o)
Handler method called by the Geost kernel when the domain of the object changes.
|
Collection<? extends InternalConstraint> genInternalConstraints(Geost geost)
geost
- the geost kernel that will use the generated constraintCollection<? extends InternalConstraint> getObjectConstraints(GeostObject o)
o
- the geost object that needs to be constrainedboolean addPrunableObjects(GeostObject o, SimpleHashSet<GeostObject> accumulator)
o
- the object that was prunedaccumulator
- the set of objects to add the object tovoid onObjectUpdate(GeostObject o)
o
- boolean isInternalConstraintApplicableTo(InternalConstraint ic, GeostObject o)
ic
- internal constraint being checkedo
- object to which internal constrain should apply toGeostObject[] getObjectScope()
Copyright © 2015. All rights reserved.