public class Sequence extends ArrayList<Node>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULTKEYWORD |
modCount
Constructor and Description |
---|
Sequence(NodeSpecification nodeSpecficiation)
Sets up an empty sequence with the given NodeSpecification as basis.
|
Sequence(String sequenceString)
Sets up a trivial sequence with only one keyword (DEFAULTKEYWORD) and treats
the string content between | delimiters in the input string as symbolic
values.
|
Sequence(String sequenceString,
Alphabet alphabet)
Sets up a trivial sequence with only one keyword (DEFAULTKEYWORD) and treats
the string content between | delimiters in the input string as symbolic
values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
NodeSpecification |
getNodeSpecification()
Returns the NodeSpecification all Nodes in this sequence belong to.
|
int |
hashCode() |
String |
toString() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
containsAll
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll
parallelStream, stream
public static final String DEFAULTKEYWORD
public Sequence(@NonNull NodeSpecification nodeSpecficiation)
nodeSpecficiation
- The NodeSpecificaton that is the basis for this
Sequence.public Sequence(@NonNull String sequenceString)
sequenceString
- an input string.public Sequence(@NonNull String sequenceString, @NonNull Alphabet alphabet)
sequenceString
- an input string.alphabet
- the alphabet that is the basis for the given input string
and contains all symbols that are used in the input sequence.public NodeSpecification getNodeSpecification()
public String toString()
toString
in class AbstractCollection<Node>
public int hashCode()
hashCode
in interface Collection<Node>
hashCode
in interface List<Node>
hashCode
in class AbstractList<Node>
public boolean equals(Object obj)
equals
in interface Collection<Node>
equals
in interface List<Node>
equals
in class AbstractList<Node>
Copyright (C) 2016-2018 Benjamin Paaßen, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/