| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjoeq.Compiler.Dataflow.Solver
joeq.Compiler.Dataflow.WorklistSolver
joeq.Compiler.Dataflow.SortedSetSolver
public class SortedSetSolver
SortedSetSolver
| Field Summary | |
|---|---|
protected  List | 
allNodes
All locations in the graph, stored in a list.  | 
protected  Comparator | 
ordering
Location ordering function.  | 
protected  SortedSet | 
worklist
Worklist of locations, sorted by priority.  | 
| Fields inherited from class joeq.Compiler.Dataflow.WorklistSolver | 
|---|
boundaries, graphNavigator | 
| Fields inherited from class joeq.Compiler.Dataflow.Solver | 
|---|
dataflowValues, factory, problem | 
| Constructor Summary | |
|---|---|
SortedSetSolver()
 | 
|
SortedSetSolver(Comparator c)
 | 
|
SortedSetSolver(jwutil.collections.MapFactory f)
 | 
|
| Method Summary | |
|---|---|
 Iterator | 
allLocations()
Returns an iteration of all graph locations.  | 
protected  boolean | 
hasNext()
Returns true if the worklist is not empty, false otherwise.  | 
 void | 
initialize(Problem p,
           jwutil.graphs.Graph graph)
Initializes the solver to prepare to solve the dataflow problem on the given graph.  | 
protected  void | 
initializeWorklist()
(Re-)initialize the worklist.  | 
protected  Object | 
pull()
Pull the next location off of the worklist.  | 
protected  void | 
pushAll(Collection c)
Push all of the given locations onto the worklist.  | 
 void | 
setOrder(Comparator c)
Set the default ordering for this solver.  | 
| Methods inherited from class joeq.Compiler.Dataflow.WorklistSolver | 
|---|
boundaryLocations, getPredecessors, getSuccessors, solve | 
| Methods inherited from class joeq.Compiler.Dataflow.Solver | 
|---|
compareResults, direction, dumpResults, getDataflowValue, initializeDataflowValueMap, reset | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected List allNodes
protected SortedSet worklist
protected Comparator ordering
| Constructor Detail | 
|---|
public SortedSetSolver(jwutil.collections.MapFactory f)
public SortedSetSolver()
public SortedSetSolver(Comparator c)
| Method Detail | 
|---|
public void setOrder(Comparator c)
c - comparator object that implements the ordering
public void initialize(Problem p,
                       jwutil.graphs.Graph graph)
Solver
initialize in class WorklistSolverpublic Iterator allLocations()
Solver
allLocations in class Solverprotected void initializeWorklist()
WorklistSolver
initializeWorklist in class WorklistSolverprotected boolean hasNext()
WorklistSolver
hasNext in class WorklistSolverprotected Object pull()
WorklistSolver
pull in class WorklistSolverprotected void pushAll(Collection c)
WorklistSolver
pushAll in class WorklistSolver
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||