de.cau.cs.kieler.core.math
Class KVectorChain

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList<KVector>
                  extended by de.cau.cs.kieler.core.math.KVectorChain
All Implemented Interfaces:
IDataObject, Serializable, Cloneable, Iterable<KVector>, Collection<KVector>, Deque<KVector>, List<KVector>, Queue<KVector>

public class KVectorChain
extends LinkedList<KVector>
implements IDataObject

A chain of vectors. Can be used to describe polylines or similar constructs.

See Also:
Serialized Form
Rating red

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
KVectorChain()
          Creates an empty vector chain.
KVectorChain(Collection<KVector> collection)
          Creates a vector chain from a given collection of vectors.
 
Method Summary
 void parse(String string)
          Parse the given string and set the content of this data object.
 String toString()
          
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, 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, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 
Methods inherited from interface java.util.Deque
iterator
 

Constructor Detail

KVectorChain

public KVectorChain()
Creates an empty vector chain.


KVectorChain

public KVectorChain(Collection<KVector> collection)
Creates a vector chain from a given collection of vectors.

Parameters:
collection - a collection of vectors
Method Detail

toString

public String toString()

Overrides:
toString in class AbstractCollection<KVector>

parse

public void parse(String string)
           throws KielerException
Parse the given string and set the content of this data object.

Specified by:
parse in interface IDataObject
Parameters:
string - a string
Throws:
KielerException - if the string does not have the expected format