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

Nested Class Summary
 
Nested classes/interfaces inherited from interface anon.client.ITrustModel
ITrustModel.TrustException
 
Field Summary
private  boolean m_bAutoReConnect
           
private  MixCascade m_mixCascade
           
 
Constructor Summary
SimpleMixCascadeContainer(MixCascade a_mixCascade)
           
 
Method Summary
 MixCascade getCurrentMixCascade()
          Returns the last return value of getNextCascade().
 MixCascade getNextMixCascade()
          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
 
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

getNextMixCascade

public MixCascade getNextMixCascade()
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:
getNextMixCascade in class AbstractMixCascadeContainer
Returns:
a MixCascade and never null

getCurrentMixCascade

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

Specified by:
getCurrentMixCascade 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 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