bcds.phison.sim
Class LinkFailureEffect

java.lang.Object
  extended by bcds.phison.sim.LinkFailureEffect

public class LinkFailureEffect
extends java.lang.Object


Nested Class Summary
static class LinkFailureEffect.Effect
          The possible outcomes of a failure affecting a connection.
 
Constructor Summary
LinkFailureEffect()
           
 
Method Summary
static
<V,E> LinkFailureEffect.Effect
determineEffect(ConnectionInfo<V,E> conn, E failed_e, TED<V,E> ted)
           
static
<V,E> SimplePair<LinkFailureEffect.Effect,E>
determineEffectOfMultipleFailure(ConnectionInfo<V,E> conn, java.util.Collection<E> failed_e, TED<V,E> ted)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkFailureEffect

public LinkFailureEffect()
Method Detail

determineEffect

public static <V,E> LinkFailureEffect.Effect determineEffect(ConnectionInfo<V,E> conn,
                                                             E failed_e,
                                                             TED<V,E> ted)
Parameters:
failed_e - does not appear in any of @param conn's path (working or backup) XXX This code uses GraphUtil.splitProtAndUnprotParts(). Therefore, I assume that at most one "segment protection" is allowed. I'm not sure... I don't remember... jsegovia@eia.udg.edu 2010-07-22
Returns:
The effect that the failure of link @param failed_e has on connection @param conn. It is quite possible that much failure does not any any effect if

determineEffectOfMultipleFailure

public static <V,E> SimplePair<LinkFailureEffect.Effect,E> determineEffectOfMultipleFailure(ConnectionInfo<V,E> conn,
                                                                                            java.util.Collection<E> failed_e,
                                                                                            TED<V,E> ted)