public class FA extends Object
| Modifier and Type | Method and Description |
|---|---|
int |
add(Object label)
Inserts a new states to the automaton.
|
void |
alternate(FA alt) |
net.oneandone.sushi.util.IntBitSet[] |
epsilonClosures()
Its too expensive to compute a single epsilong closure.
|
int |
find(Object label) |
State |
get(int idx) |
int |
getFirstEnd() |
int |
getNextEnd(int state) |
int |
getStart() |
boolean |
isEnd(int state) |
void |
not()
Negates normal states and end states.
|
void |
plus() |
void |
resetEnd(int state) |
void |
sequence(FA seq) |
void |
setEnd(int state) |
void |
setEndLabels(Object label) |
void |
setStart(int state) |
int |
size() |
void |
star() |
String |
toString() |
public FA()
public FA(FA orig)
public int add(Object label)
label - label for the state created.public State get(int idx)
public int size()
public int find(Object label)
public void setEndLabels(Object label)
public int getStart()
public void setStart(int state)
state - -1 to unset the start statepublic void setEnd(int state)
public void resetEnd(int state)
public boolean isEnd(int state)
public int getFirstEnd()
public int getNextEnd(int state)
public void sequence(FA seq)
public void alternate(FA alt)
public void star()
public void plus()
public void not()
public net.oneandone.sushi.util.IntBitSet[] epsilonClosures()
Copyright © 1998–2017 1&1. All rights reserved.