anon.infoservice
Class AbstractMixCascadeContainer
java.lang.Object
java.util.Observable
anon.client.BasicTrustModel
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
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 |
AbstractMixCascadeContainer
public AbstractMixCascadeContainer()
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()