|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcalhoun.analysis.crf.io.InputSequenceCharacter
public class InputSequenceCharacter
an input sequence where the elements of the sequence are string characters.
| Constructor Summary | |
|---|---|
InputSequenceCharacter()
default constructor |
|
InputSequenceCharacter(java.lang.String a)
creates an input sequence using data from this string |
|
| Method Summary | |
|---|---|
InputSequence<?> |
getComponent(java.lang.String name)
For input sequences that are a composite of several different input objects, returns a particular component of the input. |
java.lang.String |
getString()
returns the input sequence as a string |
java.lang.Character |
getX(int ix)
retrieves the input value at a position in the input sequence. |
int |
length()
Returns the length of this sequence |
java.util.Collection<java.lang.String> |
listComponents()
For input sequences that are a composite of several different input objects, returns a list of the names of the components in this input sequence. |
InputSequence<java.lang.Character> |
subSequence(int start,
int end)
tTakes a subinterval of the input sequence with given start-end coordinates which are relative coordinates, 1-based, and inclusive. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InputSequenceCharacter()
public InputSequenceCharacter(java.lang.String a)
a - string containing characters of the input sequence| Method Detail |
|---|
public java.lang.String getString()
public java.lang.Character getX(int ix)
InputSequence
getX in interface InputSequence<java.lang.Character>ix - the index position at which to get the input. This is a zero-based index.
public int length()
InputSequence
length in interface InputSequence<java.lang.Character>public InputSequence<?> getComponent(java.lang.String name)
InputSequenceUnsupportedOperationException.
getComponent in interface InputSequence<java.lang.Character>name - the name of the input component to return
public java.util.Collection<java.lang.String> listComponents()
InputSequence
listComponents in interface InputSequence<java.lang.Character>
public InputSequence<java.lang.Character> subSequence(int start,
int end)
InputSequence
An implementation that does not support subsetting should throw an UnsupportedOperationException
subSequence in interface InputSequence<java.lang.Character>start - the 1-based index of the first position of the input to retrieve.end - the 1-based index of the last position of the input to retrieve.
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||