public class SyntacticSeries extends SyntacticTermList
Red |
Red (shaver) |
_inputs, _outputs, _rank
Constructor and Description |
---|
SyntacticSeries()
Create an empty SyntacticSeries term.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
SyntacticTerm term)
Adds a term to an arbitrary position of the series.
|
boolean |
add(SyntacticTerm term)
Add a term to the end of the series.
|
java.lang.String |
generateCode()
Generate code for the series.
|
void |
intercolatePermutations()
Intercolate permutations between series terms.
|
void |
push(SyntacticTerm term)
Pushes a term to the end of the series.
|
boolean |
remove(SyntacticTerm term)
Removes a term from the series.
|
_refreshPorts, _refreshRank, addAll, clear, getInputs, getOrder, getOutputs, hasCode, inputIndex, outputIndex, rank, remove, remove, removeAll, set, sizeInputs, sizeOutputs
addAll, addFirst, addLast, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, size, spliterator, toArray, toArray
equals, hashCode, listIterator, removeRange, subList
finalize, getClass, notify, notifyAll, wait, wait, wait
public boolean add(SyntacticTerm term)
add
in interface java.util.Collection<SyntacticTerm>
add
in interface java.util.Deque<SyntacticTerm>
add
in interface java.util.List<SyntacticTerm>
add
in interface java.util.Queue<SyntacticTerm>
add
in class SyntacticTermList
term
- Term to be added to series.public void push(SyntacticTerm term)
push
in interface java.util.Deque<SyntacticTerm>
push
in class java.util.LinkedList<SyntacticTerm>
term
- Term to be added to series.public void add(int index, SyntacticTerm term)
add
in interface java.util.List<SyntacticTerm>
add
in class SyntacticTermList
index
- Index at which to add the term.term
- Term to add to series.public boolean remove(SyntacticTerm term)
term
- Term to remove from series.public void intercolatePermutations()
public java.lang.String generateCode()
generateCode
in interface SyntacticTerm
generateCode
in class SyntacticTermList