ch.bfh.algo.core.sequence
Class GenericLinkedPosition<E,P extends GenericLinkedPosition<E,P>>

java.lang.Object
  extended by ch.bfh.algo.core.sequence.ConcretePosition<E,P>
      extended by ch.bfh.algo.core.sequence.GenericLinkedPosition<E,P>
All Implemented Interfaces:
GenericPosition<E,P>, Observable, Position<E>
Direct Known Subclasses:
GenericEdge, GenericVertex, LinkedPosition, ObserverPosition

public class GenericLinkedPosition<E,P extends GenericLinkedPosition<E,P>>
extends ConcretePosition<E,P>
implements Observable


Constructor Summary
protected GenericLinkedPosition()
           
protected GenericLinkedPosition(boolean observable)
           
 
Method Summary
 ObserverPosition attachAfter(Observer observer)
           
 ObserverPosition attachBefore(Observer observer)
           
 GenericLinkedSequence<E,P> container()
           
 void detachAfter(ObserverPosition position)
           
 void detachBefore(ObserverPosition position)
           
protected  P getNext()
           
protected  P getPrevious()
           
 void notifyAfter()
           
 void notifyBefore()
           
protected  void setNext(P next)
           
protected  void setPrevious(P previous)
           
 
Methods inherited from class ch.bfh.algo.core.sequence.ConcretePosition
element, locator, replace, setContainer, setLocator, swap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericLinkedPosition

protected GenericLinkedPosition()

GenericLinkedPosition

protected GenericLinkedPosition(boolean observable)
Method Detail

container

public GenericLinkedSequence<E,P> container()
Overrides:
container in class ConcretePosition<E,P extends GenericLinkedPosition<E,P>>

getPrevious

protected P getPrevious()

setPrevious

protected void setPrevious(P previous)

getNext

protected P getNext()

setNext

protected void setNext(P next)

attachBefore

public ObserverPosition attachBefore(Observer observer)
Specified by:
attachBefore in interface Observable

attachAfter

public ObserverPosition attachAfter(Observer observer)
Specified by:
attachAfter in interface Observable

detachBefore

public void detachBefore(ObserverPosition position)
Specified by:
detachBefore in interface Observable

detachAfter

public void detachAfter(ObserverPosition position)
Specified by:
detachAfter in interface Observable

notifyBefore

public void notifyBefore()
Specified by:
notifyBefore in interface Observable

notifyAfter

public void notifyAfter()
Specified by:
notifyAfter in interface Observable