LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
tikz_node_renderer.h File Reference

Port of jline.io.tikz.TikZNodeRenderer: the preamble with the node styles, and one TikZ node per network node. More...

#include <cmath>
#include <sstream>
#include <string>
#include "line/io/tikz/tikz_graph.h"
#include "line/io/tikz/tikz_options.h"
Include dependency graph for tikz_node_renderer.h:

Go to the source code of this file.

Namespaces

namespace  line
 Conservation laws of a layered queueing network, enumerated from its structure.
namespace  line::io
namespace  line::io::tikz_detail

Functions

std::string line::io::tikz_preamble (const TikzOptions &opt)
 TikZNodeRenderer.getPreamble, byte for byte.
std::string line::io::tikz_detail::styled_node (const std::string &style, const std::string &id, double x, double y, const std::string &body, const TikzNode &nd, const TikzOptions &opt)
 \node[style] (id) at (x,y) {body}; followed by the name label the options ask for.
std::string line::io::tikz_detail::server_label (double c)
 String.valueOf(queue.getNumberOfServers()), the JAR's Integer.MAX_VALUE pool being infinity.
std::string line::io::tikz_render_node (const TikzNode &nd, double x, double y, const TikzOptions &opt)
 TikZNodeRenderer.renderNode.

Detailed Description

Port of jline.io.tikz.TikZNodeRenderer: the preamble with the node styles, and one TikZ node per network node.

The shape follows the node's KIND, in the JAR's instanceof order: a Delay is a green box marked infinity, a Queue a buffer with its discipline beneath and a server circle carrying the server count, a Source/Sink a small white/black circle with an arrival/departure stub, Fork/Join diamonds, a Router a hexagon, a ClassSwitch a trapezium, a Cache a grey box with three level lines, a Logger a brown box, a Place a circle, a Transition a black bar. Any other kind (a Region) falls back to a plain circle.

Definition in file tikz_node_renderer.h.