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:
AbstractAutoSwitchedMixCascadeContainer, AnonProxy.DummyMixCascadeContainer, AnonProxy.EncapsulatedMixCascadeContainer, 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

Constructor Summary
AbstractMixCascadeContainer()
           
 
Method Summary
abstract  MixCascade getCurrentCascade()
          Returns the last return value of getNextCascade().
 AnonServerDescription getCurrentService()
           
abstract  MixCascade getNextCascade()
          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, 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

getNextCascade

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

Returns:
a MixCascade and never null

getCurrentCascade

public abstract MixCascade getCurrentCascade()
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()
Specified by:
isReconnectedAutomatically in interface IServiceContainer