anon.infoservice
Class AbstractMixCascadeContainer

java.lang.Object
  extended by java.util.Observable
      extended by anon.client.BasicTrustModel
          extended by anon.infoservice.AbstractMixCascadeContainer
All Implemented Interfaces:
ITrustModel, IServiceContainer
Direct Known Subclasses:
SimpleMixCascadeContainer

public abstract class AbstractMixCascadeContainer
extends BasicTrustModel
implements IServiceContainer

This class keeps and returns one or more objects of the class MixCascade.

Author:
Rolf Wendolsky

Nested Class Summary
 
Nested classes/interfaces inherited from interface anon.client.ITrustModel
ITrustModel.TrustException
 
Constructor Summary
AbstractMixCascadeContainer()
           
 
Method Summary
abstract  MixCascade getCurrentMixCascade()
          Returns the last return value of getNextCascade().
 AnonServerDescription getCurrentService()
           
abstract  MixCascade getNextMixCascade()
          Must return a MixCascade and never null.
abstract  boolean isReconnectedAutomatically()
           
abstract  boolean isServiceAutoSwitched()
           
abstract  void keepCurrentService(boolean a_bKeepCurrentService)
          Optional method that should allow to return the last MixCascade (Service) that was returned by getNextService() also the next time this method is called.
 
Methods inherited from class anon.client.BasicTrustModel
checkTrust, isTrusted
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface anon.client.ITrustModel
checkTrust, isTrusted
 

Constructor Detail

AbstractMixCascadeContainer

public AbstractMixCascadeContainer()
Method Detail

getNextMixCascade

public abstract MixCascade getNextMixCascade()
Must return a MixCascade and never null. The returned MixCascade may change with every call of this method.

Returns:
a MixCascade and never null

getCurrentMixCascade

public abstract MixCascade getCurrentMixCascade()
Returns the last return value of getNextCascade().

Returns:
the last return value of getNextCascade() (may be null if no call has been done yet)

getCurrentService

public final AnonServerDescription getCurrentService()

keepCurrentService

public abstract void keepCurrentService(boolean a_bKeepCurrentService)
Optional method that should allow to return the last MixCascade (Service) that was returned by getNextService() also the next time this method is called.

Specified by:
keepCurrentService in interface IServiceContainer
Parameters:
a_bKeepCurrentService - allows or dissallows to keep the current cascade for the next call

isServiceAutoSwitched

public abstract boolean isServiceAutoSwitched()
Specified by:
isServiceAutoSwitched in interface IServiceContainer

isReconnectedAutomatically

public abstract boolean isReconnectedAutomatically()