From 979f33b72154ff041ce0eec6535bd01acf5eccef Mon Sep 17 00:00:00 2001 From: nojhan Date: Mon, 7 Nov 2011 15:44:36 +0100 Subject: [PATCH] ditaa text diagram explaining how the repairer dispatcher works --- edo/src/edoRepairerDispatcher.h | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/edo/src/edoRepairerDispatcher.h b/edo/src/edoRepairerDispatcher.h index b198a14a8..90ee79246 100644 --- a/edo/src/edoRepairerDispatcher.h +++ b/edo/src/edoRepairerDispatcher.h @@ -50,6 +50,44 @@ Authors: * idx.insert(2); * rpd.add( idx, &repairer ); * + * A diagram trying to visually explain how it works: + \ditaa + + | + /-\ | /------------\ + | +---|---+ Dispatcher | + | | v | | + | |+-----+| --------------------------------+ + | || x_0 || +-+-+-+ | +------------\ | /-\ + | |+-----+| |2|3|5+*----*-* Repairer A +---|---+ | + | || x_1 || +-+-+-+ | | | | v | | + | |+-----+| | | | |+-----+| | + | || x_2 || | | | || x_2 || | + | |+-----+| | | | |+-----+| | + | || x_3 || | | | || x_3 || | + | |+-----+| | | | |+-----+| | + | || x_4 || | | | || x_5 || | + | |+-----+| | | | |+-----+| | + | || x_5 || | | | | | | | + | |+-----+| | | | +---|---+ | + | || x_6 || | | \------------/ | \-/ + | |+-----+| <-------------------------------+ + | || x_7 || | | + | |+-----+| +-+-+ | | + | || x_8 || |2|3+*------+ + | |+-----+| +-+-+ | + | || x_9 || | + | |+-----+| +-+-+ | +------------\ /-\ + | | | | |1|5+*--------* Repairer B +-------+ | + | | | | +-+-+ | | | | | + | | | | | | | | | + | | | | | | +-------+ | + | +---|---+ | \------------/ \-/ + \-/ | \------------/ + v + + \endditaa + * @example t-dispatcher-round.cpp * * @ingroup Repairers