mjc

org.multijava.util.backend
Class InferenceNode

java.lang.Object
  extended byorg.multijava.util.backend.InferenceNode

class InferenceNode
extends Object

This class represents a temporary


Field Summary
private  int color
           
private  ArrayList links
           
private  boolean removed
           
private  ArrayList temps
           
 
Constructor Summary
(package private) InferenceNode(QTemporary temp)
           
 
Method Summary
 void coalesceTo(InferenceNode other)
          Coalesce two nodes together.
 void colorize()
          Sets the color of the node.
 int countInference()
          Returns the number of inference.
 int getColor()
          Returns the color of the node
 ArrayList getInferences()
          Returns the linked nodes.
 int getPosition()
          Gets the position of this node
 int getPrecolor()
          Returns the precolor
 int getSize()
          Returns the precolor
 QTemporary[] getTemporaries()
          Returns the temporaries represented by this block.
 int getWeight()
          Returns the weight.
 boolean isPrecolored()
          Returns if this node is precolored
 boolean isRemoved()
          Returns true if this node has been removed from the graph
 void linkTo(InferenceNode other)
          Adds a link to an other node
 void remove()
          Removes this node.
 void setTempsColor()
          Assigns the color to temporaries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

temps

private ArrayList temps

links

private ArrayList links

removed

private boolean removed

color

private int color
Constructor Detail

InferenceNode

InferenceNode(QTemporary temp)
Method Detail

getPosition

public int getPosition()
Gets the position of this node


countInference

public int countInference()
Returns the number of inference.


linkTo

public void linkTo(InferenceNode other)
Adds a link to an other node


getWeight

public int getWeight()
Returns the weight.


getInferences

public ArrayList getInferences()
Returns the linked nodes.


getTemporaries

public QTemporary[] getTemporaries()
Returns the temporaries represented by this block.


coalesceTo

public void coalesceTo(InferenceNode other)
Coalesce two nodes together.


remove

public void remove()
Removes this node.


isRemoved

public boolean isRemoved()
Returns true if this node has been removed from the graph


getSize

public int getSize()
Returns the precolor


getPrecolor

public int getPrecolor()
Returns the precolor


isPrecolored

public boolean isPrecolored()
Returns if this node is precolored


setTempsColor

public void setTempsColor()
Assigns the color to temporaries


colorize

public void colorize()
Sets the color of the node.


getColor

public int getColor()
Returns the color of the node


mjc

mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.