anon.infoservice
Class SimpleMixCascadeContainer

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

public class SimpleMixCascadeContainer
extends AbstractMixCascadeContainer

Takes and returns a single MixCascade.

Author:
Rolf Wendolsky

Field Summary
private  boolean m_bAutoReConnect
           
private  MixCascade m_mixCascade
           
 
Constructor Summary
SimpleMixCascadeContainer(MixCascade a_mixCascade)
           
 
Method Summary
 MixCascade getCurrentCascade()
          Returns the last return value of getNextCascade().
 MixCascade getNextCascade()
          Must return a MixCascade and never null.
 boolean isReconnectedAutomatically()
           
 boolean isServiceAutoSwitched()
           
 void keepCurrentService(boolean a_bKeepCurrentCascade)
          Optional method that should allow to return the last MixCascade (Service) that was returned by getNextService() also the next time this method is called.
 void setAutoReConnect(boolean b)
           
 
Methods inherited from class anon.infoservice.AbstractMixCascadeContainer
getCurrentService
 
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
 

Field Detail

m_mixCascade

private MixCascade m_mixCascade

m_bAutoReConnect

private boolean m_bAutoReConnect
Constructor Detail

SimpleMixCascadeContainer

public SimpleMixCascadeContainer(MixCascade a_mixCascade)
Method Detail

getNextCascade

public MixCascade getNextCascade()
Description copied from class: AbstractMixCascadeContainer
Must return a MixCascade and never null. The returned MixCascade may change with every call of this method.

Specified by:
getNextCascade in class AbstractMixCascadeContainer
Returns:
a MixCascade and never null

getCurrentCascade

public MixCascade getCurrentCascade()
Description copied from class: AbstractMixCascadeContainer
Returns the last return value of getNextCascade().

Specified by:
getCurrentCascade in class AbstractMixCascadeContainer
Returns:
the last return value of getNextCascade() (may be null if no call has been done yet)

isServiceAutoSwitched

public boolean isServiceAutoSwitched()
Specified by:
isServiceAutoSwitched in interface IServiceContainer
Specified by:
isServiceAutoSwitched in class AbstractMixCascadeContainer

setAutoReConnect

public void setAutoReConnect(boolean b)

isReconnectedAutomatically

public boolean isReconnectedAutomatically()
Specified by:
isReconnectedAutomatically in interface IServiceContainer
Specified by:
isReconnectedAutomatically in class AbstractMixCascadeContainer

keepCurrentService

public void keepCurrentService(boolean a_bKeepCurrentCascade)
Description copied from class: AbstractMixCascadeContainer
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
Specified by:
keepCurrentService in class AbstractMixCascadeContainer
Parameters:
a_bKeepCurrentCascade - allows or dissallows to keep the current cascade for the next call