dk.brics.servletvalidator.balancing.inequality
Class Node

java.lang.Object
  extended by dk.brics.servletvalidator.balancing.inequality.Node

public class Node
extends Object

A node holds a non terminal and a number of dependencies


Constructor Summary
Node()
           
 
Method Summary
 void addDependency(Dependency dependency)
           
 void addMax(int max)
           
 void addMin(int min)
          Sests min as the new minimum if it is larger than the previous set min
 LinkedList<Dependency> getDependencies()
           
 int getMax()
           
 int getMin()
           
 int getValue()
           
 void push(int leastValue)
           
 boolean satisfied()
           
 void setMax(int max)
           
 void setMin(int min)
           
 void setValue(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

public Node()
Method Detail

addDependency

public void addDependency(Dependency dependency)

addMax

public void addMax(int max)

addMin

public void addMin(int min)
Sests min as the new minimum if it is larger than the previous set min

Parameters:
min -

getDependencies

public LinkedList<Dependency> getDependencies()

getMax

public int getMax()

getMin

public int getMin()

getValue

public int getValue()

push

public void push(int leastValue)

satisfied

public boolean satisfied()

setMax

public void setMax(int max)

setMin

public void setMin(int min)

setValue

public void setValue(int value)


Copyright © 2008 Mathias Schwarz.