Class SyntacticColumn

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<SyntacticTerm>, java.util.Collection<SyntacticTerm>, java.util.Deque<SyntacticTerm>, java.util.List<SyntacticTerm>, java.util.Queue<SyntacticTerm>, SyntacticTerm

    public class SyntacticColumn
    extends SyntacticTermList
    Represent parallel composition in the context of Syntax terms. SyntacticTerm implementing objects can be put in parallel composition in this object which combines input and output ports of the constituent terms.

    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Chris Shaver
    See Also:
    Serialized Form
    Pt.AcceptedRating:
    red
    Pt.ProposedRating:
    red (shaver)
    • Constructor Summary

      Constructors 
      Constructor Description
      SyntacticColumn()
      Create new empty Syntactic Column.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean doesFollow​(SyntacticTerm node)
      Decide if given node follows completely from this column.
      java.lang.String generateCode()
      Generate code for the term.
      boolean hasCode()
      Decide whether the term has code to generate.
      void sort()
      Sort constituent terms in column by type order.
      • Methods inherited from class java.util.LinkedList

        addAll, addFirst, addLast, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, size, spliterator, toArray, toArray
      • Methods inherited from class java.util.AbstractSequentialList

        iterator
      • Methods inherited from class java.util.AbstractList

        equals, hashCode, listIterator, removeRange, subList
      • Methods inherited from class java.util.AbstractCollection

        containsAll, isEmpty, retainAll, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.util.Deque

        iterator
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        containsAll, equals, hashCode, isEmpty, iterator, listIterator, replaceAll, retainAll, sort, subList
    • Constructor Detail

      • SyntacticColumn

        public SyntacticColumn()
        Create new empty Syntactic Column.
    • Method Detail

      • doesFollow

        public boolean doesFollow​(SyntacticTerm node)
        Decide if given node follows completely from this column. To be true there must be at least one connection from the column to the node and all incoming connections must follow from this column.
        Parameters:
        node - The node possibly following the column.
        Returns:
        Whether the given node follows completely from given column.
      • sort

        public void sort()
        Sort constituent terms in column by type order. Sorting a column will change its neighboring permutations.