|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbcds.phison.sim.PmBase<V,E>
bcds.phison.sim.PmLinkFailure<V,E>
public class PmLinkFailure<V,E>
Process (single) link failures, that is, act upon LINK_FAILURE and LINK_REPAIR events. No recovery is attempted; once failed, connections are lost for ever. NOTE that this class supports unprotected and dedicated protections only. - 2010-09-17 Converted to a "Pm" (processing module) from the code within Sim.java.
Constructor Summary | |
---|---|
PmLinkFailure()
|
Method Summary | |
---|---|
java.lang.Object[] |
getEnvParams()
Returns an empty array. |
void |
registerLinkFailureEvent(bcds.phison.sim.PmLinkFailure.Stats st,
SimEvents ev,
E e,
java.lang.String traf_type,
TED<V,E> ted)
Updates: - the number of concurrent link failures, - the list of links that have failed, - the number of connections affected by the failure, - the affected capacity, - the histogram "failure notification time". |
void |
run(SimEvents evtype,
ConnectionInfo<V,E> rq)
Empty implementation. |
void |
setup(SimCore<V,E> sim)
Saves the parameter sim , which can later be obtained by
calling the sim() method. |
void |
shutdown()
Empty implementation. |
Methods inherited from class bcds.phison.sim.PmBase |
---|
ctx, env, getEnviron, getId, getName, opt, sim, stats |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bcds.phison.sim.ProcessingModule |
---|
getId, sim |
Methods inherited from interface bcds.phison.WithEnvParams |
---|
getEnviron, getName |
Constructor Detail |
---|
public PmLinkFailure()
Method Detail |
---|
public void setup(SimCore<V,E> sim)
PmBase
sim
, which can later be obtained by
calling the sim() method. It also calls
adaptTypes if the environment object is non-null (which should
normally be).
setup
in interface ProcessingModule<V,E>
setup
in class PmBase<V,E>
public void run(SimEvents evtype, ConnectionInfo<V,E> rq)
PmBase
run
in interface ProcessingModule<V,E>
run
in class PmBase<V,E>
public void shutdown()
PmBase
shutdown
in interface ProcessingModule<V,E>
shutdown
in class PmBase<V,E>
public void registerLinkFailureEvent(bcds.phison.sim.PmLinkFailure.Stats st, SimEvents ev, E e, java.lang.String traf_type, TED<V,E> ted)
ev.
- The type of event.e.
- The affected link.traf_type.
- The traffic or demand type. null means "any type",
i.e., global statistics.ted.
- Needed to obtain the list of connections passing
thourgh e, and for accessing the graph (ted.g).public java.lang.Object[] getEnvParams()
PmBase
getEnvParams
in interface WithEnvParams
getEnvParams
in class PmBase<V,E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |