From 3a14fa17e9f1d74ed0eea105aea3771b111ad530 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Thu, 3 Oct 2013 11:54:01 -0400 Subject: [PATCH] [doc] Additional figures Add three figures ad well as a text file that lists them. --- doc/figures/FIGURES.t2t | 34 ++++++++++++++++++++++ doc/figures/owlps_sequence_diagram.plant | 37 ++++++++++++++++++++++++ doc/figures/positioner_input_output.dot | 33 +++++++++++++++++++++ doc/figures/positioner_process.dot | 26 +++++++++++++++++ 4 files changed, 130 insertions(+) create mode 100644 doc/figures/FIGURES.t2t create mode 100644 doc/figures/owlps_sequence_diagram.plant create mode 100644 doc/figures/positioner_input_output.dot create mode 100644 doc/figures/positioner_process.dot diff --git a/doc/figures/FIGURES.t2t b/doc/figures/FIGURES.t2t new file mode 100644 index 0000000..9fd6611 --- /dev/null +++ b/doc/figures/FIGURES.t2t @@ -0,0 +1,34 @@ +List of figures provided with the OwlPS distribution + + +: **Aggregation sequence diagram** + This is actually a sequence diagram showing the whole process of + positioning, but it is focused on and best suited to illustrate the + aggregation process. An ASCII art version is provided in the OwlPS + Aggregator manual page (``owlps-aggregatord.t2t``). + - File name: ``owlps_sequence_diagram.plant`` + - Format: [PlantUML http://plantuml.sourceforge.net/] + - PNG conversion command (assuming ``plantuml`` is an alias for + ``java -jar /path/to/plantuml.jar``): +``` plantuml -tpng owlps_sequence_diagram.plant + PlantUML also allow to generate SVG or EPS (which in turn can be + converted to PDF with [Inkscape http://inkscape.org/] or + [epstopdf http://ctan.org/pkg/epstopdf], respectively). + +: **OwlPS Positioner's input and output facilities** + - File name: ``positioner_input_output.dot`` + - Format: [Graphviz http://www.graphviz.org/] + - PDF conversion command: +``` dot -Tpdf -o positioner_input_output.pdf positioner_input_output.dot + +: **OwlPS Positioner's class diagram** + - File name: ``positioner_class_diagram.uxf`` + - Format: [UMLet http://umlet.com/] + - PDF conversion command: +``` umlet -action=convert -format=pdf -filename=positioner_class_diagram.uxf + +: **OwlPS Positioner's internal process** + - File name: ``positioner_process.dot`` + - Format: [Graphviz http://www.graphviz.org/] + - PDF conversion command: +``` dot -Tpdf -o positioner_process.pdf positioner_process.dot diff --git a/doc/figures/owlps_sequence_diagram.plant b/doc/figures/owlps_sequence_diagram.plant new file mode 100644 index 0000000..adc776f --- /dev/null +++ b/doc/figures/owlps_sequence_diagram.plant @@ -0,0 +1,37 @@ +@startuml + +activate Client +Client -> Listener: positioning request + +activate Listener +Listener ->> Aggregator: request + SS + +' Aggregation timeout +activate Aggregator +Aggregator -> Aggregator: aggregation timer +activate Aggregator #DarkSalmon +Listener -->> Aggregator: request + SS +note right: added +Aggregator -> Aggregator: timeout +deactivate Aggregator + +' Transmit the aggregated request +Aggregator -> Positioner: aggregated request +activate Positioner + +' Keep timeout +Aggregator -> Aggregator: keep timer +activate Aggregator #DarkSalmon +Listener -->> Aggregator: request + SS +note right: ignored +deactivate Listener +Aggregator -> Aggregator: timeout +deactivate Aggregator + +deactivate Aggregator + +Positioner -> Client: computed position +deactivate Positioner +deactivate Client + +@enduml diff --git a/doc/figures/positioner_input_output.dot b/doc/figures/positioner_input_output.dot new file mode 100644 index 0000000..c57bf07 --- /dev/null +++ b/doc/figures/positioner_input_output.dot @@ -0,0 +1,33 @@ +digraph positioner_io { + layout=dot + size="8,4" + margin=0 + ratio=fill + rankdir=LR + edge [dir=right] + + /* Programs */ + node [style=filled, shape=box, fillcolor="#9090fa"] + positioner [label="OwlPS Positioner"] + client [label="OwlPS Client"] + udp_http [label="OwlPS UDP-to-HTTP"] + socket_adapter [label="EvAAL SocketAdapter", fillcolor="#cccccc"] + + node [shape=ellipse, fillcolor="#7ec0ea"] + + /* Inputs */ + "CSV file" -> positioner + "UDP socket" -> positioner + + /* Outputs */ + positioner -> "Standard output" + csv_file [label="CSV file"] + positioner -> csv_file + udp_socket [label="UDP socket"] + positioner -> udp_socket + udp_socket -> client + udp_socket -> udp_http + tcp_evaal [label="EvAAL TCP socket"] + positioner -> tcp_evaal + tcp_evaal -> socket_adapter +} diff --git a/doc/figures/positioner_process.dot b/doc/figures/positioner_process.dot new file mode 100644 index 0000000..b8b8078 --- /dev/null +++ b/doc/figures/positioner_process.dot @@ -0,0 +1,26 @@ +digraph positioning_process { + layout=dot + size="8,4" + margin=0 + ratio=fill + rankdir=LR + edge [dir=right] + + node [style=filled] + + node [fillcolor="#ffaaaa"] + edge [label=Request, color=red] + InputMedium -> Input + Input -> InputLogMedium + + node [fillcolor="#ffaaff"] + Input -> Positioning + Positioning -> PositioningAlgorithm + + node [fillcolor="#aaaaff"] + edge [label=Result, color=blue] + PositioningAlgorithm -> Positioning + Positioning -> Output + Output -> OutputStatistics + Output -> OutputMedium +}