uk.ac.essex.ia.model
Class OperationGraphModel

java.lang.Object
  extended by uk.ac.essex.ia.model.OperationGraphModel

public class OperationGraphModel
extends java.lang.Object

This is the model of the operation graph used by the interpreter. It contains a model of all the cells, sources and targets in the graph.

You should have received a copy of GNU public license with this code. If not please visit this site


Constructor Summary
OperationGraphModel()
           
 
Method Summary
 boolean addCell(com.jgraph.graph.DefaultGraphCell sourceCell)
           
 void addEdgeSet(java.lang.Object root)
           
 void addOperator(java.lang.Object userObject)
           
 boolean addSourceCell(com.jgraph.graph.DefaultGraphCell sourceCell)
           
 boolean addTargetCell(com.jgraph.graph.DefaultGraphCell targetCell)
           
 void clear()
           
 java.util.Set<com.jgraph.graph.DefaultGraphCell> getCellSet()
           
 java.util.HashMap<com.jgraph.graph.DefaultGraphCell,java.util.List<com.jgraph.graph.DefaultGraphCell>> getCellToSourceList()
           
 java.util.HashMap getCellToTargetList()
           
 java.util.Set getEdgeSet()
           
 com.jgraph.JGraph getjGraph()
           
 java.util.Set<java.lang.Object> getOperators()
           
 java.util.Set<com.jgraph.graph.DefaultGraphCell> getSourceCellSet()
           
 java.util.List<com.jgraph.graph.DefaultGraphCell> getSourceList(com.jgraph.graph.DefaultGraphCell c)
           
 java.util.List<com.jgraph.graph.DefaultGraphCell> getStartCells()
           
 java.util.Set<com.jgraph.graph.DefaultGraphCell> getTargetCellSet()
           
 java.util.List<com.jgraph.graph.DefaultGraphCell> getTargetList(com.jgraph.graph.DefaultGraphCell cell)
           
 boolean hasEdgeSets()
           
 boolean hasFinished(com.jgraph.graph.DefaultGraphCell cell)
          Checks to see if execution should continue, if not then it prints an ending message.
 void initDataSets()
          Gets all the operators to be executed
 void initStartCells()
          This gets the cells that will be executed first.
 void setCellSet(java.util.Set<com.jgraph.graph.DefaultGraphCell> cellSet)
           
 void setCellToSourceList(java.util.HashMap<com.jgraph.graph.DefaultGraphCell,java.util.List<com.jgraph.graph.DefaultGraphCell>> cellToSourceList)
           
 void setCellToTargetList(java.util.HashMap cellToTargetList)
           
 void setEdgeSet(java.util.Set edgeSet)
           
 void setjGraph(com.jgraph.JGraph jGraph)
           
 void setOperators(java.util.Set<java.lang.Object> operators)
           
 void setSourceCellSet(java.util.Set<com.jgraph.graph.DefaultGraphCell> sourceCellSet)
           
 java.util.List<com.jgraph.graph.DefaultGraphCell> setSourceList(com.jgraph.graph.DefaultGraphCell cell, java.util.List<com.jgraph.graph.DefaultGraphCell> sourceSet)
           
 void setTargetCellSet(java.util.Set<com.jgraph.graph.DefaultGraphCell> targetCellSet)
           
 java.util.List<com.jgraph.graph.DefaultGraphCell> setTargetList(com.jgraph.graph.DefaultGraphCell cell, java.util.List<com.jgraph.graph.DefaultGraphCell> targetSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationGraphModel

public OperationGraphModel()
Method Detail

getCellSet

public java.util.Set<com.jgraph.graph.DefaultGraphCell> getCellSet()

setCellSet

public void setCellSet(java.util.Set<com.jgraph.graph.DefaultGraphCell> cellSet)

getCellToSourceList

public java.util.HashMap<com.jgraph.graph.DefaultGraphCell,java.util.List<com.jgraph.graph.DefaultGraphCell>> getCellToSourceList()

setCellToSourceList

public void setCellToSourceList(java.util.HashMap<com.jgraph.graph.DefaultGraphCell,java.util.List<com.jgraph.graph.DefaultGraphCell>> cellToSourceList)

getCellToTargetList

public java.util.HashMap getCellToTargetList()

setCellToTargetList

public void setCellToTargetList(java.util.HashMap cellToTargetList)

getEdgeSet

public java.util.Set getEdgeSet()

setEdgeSet

public void setEdgeSet(java.util.Set edgeSet)

getOperators

public java.util.Set<java.lang.Object> getOperators()

setOperators

public void setOperators(java.util.Set<java.lang.Object> operators)

getSourceCellSet

public java.util.Set<com.jgraph.graph.DefaultGraphCell> getSourceCellSet()

setSourceCellSet

public void setSourceCellSet(java.util.Set<com.jgraph.graph.DefaultGraphCell> sourceCellSet)

getStartCells

public java.util.List<com.jgraph.graph.DefaultGraphCell> getStartCells()

getTargetCellSet

public java.util.Set<com.jgraph.graph.DefaultGraphCell> getTargetCellSet()

setTargetCellSet

public void setTargetCellSet(java.util.Set<com.jgraph.graph.DefaultGraphCell> targetCellSet)

getjGraph

public com.jgraph.JGraph getjGraph()

setjGraph

public void setjGraph(com.jgraph.JGraph jGraph)

hasEdgeSets

public boolean hasEdgeSets()

addEdgeSet

public void addEdgeSet(java.lang.Object root)

getTargetList

public java.util.List<com.jgraph.graph.DefaultGraphCell> getTargetList(com.jgraph.graph.DefaultGraphCell cell)

getSourceList

public java.util.List<com.jgraph.graph.DefaultGraphCell> getSourceList(com.jgraph.graph.DefaultGraphCell c)

setSourceList

public java.util.List<com.jgraph.graph.DefaultGraphCell> setSourceList(com.jgraph.graph.DefaultGraphCell cell,
                                                                       java.util.List<com.jgraph.graph.DefaultGraphCell> sourceSet)

setTargetList

public java.util.List<com.jgraph.graph.DefaultGraphCell> setTargetList(com.jgraph.graph.DefaultGraphCell cell,
                                                                       java.util.List<com.jgraph.graph.DefaultGraphCell> targetSet)

clear

public void clear()

addOperator

public void addOperator(java.lang.Object userObject)

addSourceCell

public boolean addSourceCell(com.jgraph.graph.DefaultGraphCell sourceCell)

addTargetCell

public boolean addTargetCell(com.jgraph.graph.DefaultGraphCell targetCell)

addCell

public boolean addCell(com.jgraph.graph.DefaultGraphCell sourceCell)

hasFinished

public boolean hasFinished(com.jgraph.graph.DefaultGraphCell cell)
Checks to see if execution should continue, if not then it prints an ending message.

Parameters:
cell -

initStartCells

public void initStartCells()
This gets the cells that will be executed first.


initDataSets

public void initDataSets()
Gets all the operators to be executed