static class LetterToSoundImpl.FinalState extends Object implements LetterToSoundImpl.State
State
that represents a final state in the
state machine. It contains one or more phones from the
phone table.LetterToSoundImpl.DecisionState
Modifier and Type | Field and Description |
---|---|
(package private) String[] |
phoneList |
(package private) static int |
TYPE |
Constructor and Description |
---|
FinalState(String phones)
Class constructor.
|
FinalState(String[] phones)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
append(ArrayList array)
Appends the phone list for this state to the given
ArrayList . |
boolean |
compare(LetterToSoundImpl.State other)
Compares this state to another state for debugging
purposes.
|
static LetterToSoundImpl.State |
loadBinary(DataInputStream dis)
Loads a FinalState object from the given input stream
|
String |
toString()
Outputs this
State as though it came from the
text input file. |
void |
writeBinary(DataOutputStream dos)
Writes this state to the given output stream.
|
static final int TYPE
public FinalState(String phones)
phones
- the phones for this statepublic FinalState(String[] phones)
phones
- an array of phones for this statepublic void append(ArrayList array)
ArrayList
.array
- the array to append topublic String toString()
State
as though it came from the
text input file. The string "epsilon" is used to indicate
an empty list.public boolean compare(LetterToSoundImpl.State other)
compare
in interface LetterToSoundImpl.State
other
- the other state to compare againsttrue
if the states are equivalentpublic void writeBinary(DataOutputStream dos) throws IOException
writeBinary
in interface LetterToSoundImpl.State
dos
- the data output streamIOException
- if an error occurspublic static LetterToSoundImpl.State loadBinary(DataInputStream dis) throws IOException
dis
- the data input streamIOException
- if an error occursWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses