| |
- geosolver.multimethod.MultiMethod(geosolver.method.Method)
-
- ClusterMethod
- PrototypeMethod
- geosolver.notify.Notifier
-
- ClusterSolver
class ClusterSolver(geosolver.notify.Notifier) |
|
Constraints are Clusers: Rigids, Hedgehogs and Balloons.
After adding each cluster, the solver tries to merge
clusters, adding new clusters and methods between clusters. |
|
Methods defined here:
- __init__(self, dimension)
- Create a new empty solver
- __str__(self)
- add(self, cluster)
- Add a cluster.
arguments:
cluster: A Rigid
- angles(self)
- get list of angles
- balloons(self)
- get list of balloons
- contains(self, obj)
- distances(self)
- get list of distances
- find_dependend(self, object)
- Return a list of objects that depend on given object directly.
- find_depends(self, object)
- Return a list of objects that the given object depends on directly
- get(self, cluster)
- Return a set of configurations associated with a cluster
- hedgehogs(self)
- get list of hedgehogs
- is_top_level(self, object)
- methods(self)
- get list of methods
- remove(self, cluster)
- Remove a cluster.
All dependend objects are also removed.
- rigids(self)
- get list of rigids
- set(self, cluster, configurations)
- Associate a list of configurations with a cluster
- set_root(self, rigid)
- Make given rigid cluster the root cluster
arguments:
cluster: A Rigid
- top_level(self)
- get top-level objects
- variables(self)
- get list of variables
Methods inherited from geosolver.notify.Notifier:
- add_listener(self, listener)
- add a listener to the list (and self to listers' list)
- rem_listener(self, listener)
- remove a listener from the list (and self from listers' list)
- send_notify(self, message)
- send a message to all listeners
|
|