| |
- geosolver.clsolver.ClusterMethod(geosolver.multimethod.MultiMethod)
-
- MergeAA
- MergeADD
- MergeDAD
- MergeDDD
- MergeDR
- MergePR
- MergeRR
- MergeSD
- MergeTTD
- geosolver.clsolver.ClusterSolver(geosolver.notify.Notifier)
-
- ClusterSolver3D
class ClusterSolver3D(geosolver.clsolver.ClusterSolver) |
|
A generic 3D geometric constraint solver.
Finds a generic solution for problems formulated by cluster-constraints.
Constraints are Clusers: Rigids, Hedgehogs and Balloons.
Cluster are added and removed using the add and remove methods.
After adding each Cluster, the solver tries to merge it with
other clusters, resulting in new Clusters and Methods.
The generic solution is a directed acyclic graph of Clusters and Methods.
Particilar problems and solutions are represented by a Configuration
for each cluster.
For each Cluster a set of Configurations can be set using the
set method. Configurations are propagated via Methods and can
be retrieved with the get method (also returning a set). |
|
- Method resolution order:
- ClusterSolver3D
- geosolver.clsolver.ClusterSolver
- geosolver.notify.Notifier
Methods defined here:
- __init__(self)
- Instantiate a ClusterSolver3D
Methods inherited from geosolver.clsolver.ClusterSolver:
- __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
|
|