com.mifmif.common.regex
Class Node

java.lang.Object
  extended by com.mifmif.common.regex.Node

public class Node
extends Object

Node class is used here to present a position in the Automata state . Each Node has a nbrChar that present the number of possible characters that could be used to go to the next possible position, and a list of Node that present the next positions.

Author:
y.mifrah

Field Summary
private  boolean isNbrMatchedStringUpdated
           
private  char maxChar
           
private  char minChar
           
private  int nbrChar
           
private  long nbrMatchedString
           
private  List<Node> nextNodes
           
 
Constructor Summary
Node()
           
 
Method Summary
 char getMaxChar()
           
 char getMinChar()
           
 int getNbrChar()
           
 long getNbrMatchedString()
           
 List<Node> getNextNodes()
           
 void setMaxChar(char maxChar)
           
 void setMinChar(char minChar)
           
 void setNbrChar(int nbrChar)
           
 void setNbrMatchedString(long nbrMatchedString)
           
 void setNextNodes(List<Node> nextNodes)
           
 void updateNbrMatchedString()
          Calculate the number of string that will be generated until the transaction presented by this node, and set the result in nbrMatchedString.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nbrChar

private int nbrChar

nbrMatchedString

private long nbrMatchedString

nextNodes

private List<Node> nextNodes

isNbrMatchedStringUpdated

private boolean isNbrMatchedStringUpdated

minChar

private char minChar

maxChar

private char maxChar
Constructor Detail

Node

public Node()
Method Detail

updateNbrMatchedString

public void updateNbrMatchedString()
Calculate the number of string that will be generated until the transaction presented by this node, and set the result in nbrMatchedString.


getNextNodes

public List<Node> getNextNodes()

setNextNodes

public void setNextNodes(List<Node> nextNodes)

getNbrChar

public int getNbrChar()

setNbrChar

public void setNbrChar(int nbrChar)

getNbrMatchedString

public long getNbrMatchedString()

setNbrMatchedString

public void setNbrMatchedString(long nbrMatchedString)

getMaxChar

public char getMaxChar()

setMaxChar

public void setMaxChar(char maxChar)

getMinChar

public char getMinChar()

setMinChar

public void setMinChar(char minChar)


Copyright © 2014. All Rights Reserved.