summaryrefslogtreecommitdiffstats
path: root/lib_nodes.py
blob: 0a044b9f5b0f06d13a385a20fe87f0a314fb15a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# vim: set fileencoding=UTF-8:
# Copyright 2013 Red Hat, Inc.
# Author: Jan Pokorný <jpokorny at redhat dot com>
# Distributed under GPLv2+;  generated content under CC-BY-SA 3.0
# (to view a copy, visit http://creativecommons.org/licenses/by-sa/3.0/)
"""Node library incl. visual aspects"""

from lib import LibNode
from lib_attributes import *


class NodeInvisible(LibNode):
    defaults = dict((
        STYLE.invis,
    ))


class Program(LibNode):
    defaults = dict((
        SHAPE.box,
        STYLE.filled,
    ))


class Agent(Program):
    defaults = dict((
        FILLCOLOR.lavenderblush,
        STYLE.filled,
    ))


class Library(Program):
    defaults = dict((
        FILLCOLOR.lavenderblush,
        STYLE.filled,
    ))


class Executable(Program):
    pass


class Daemon(Executable):
    defaults = dict((
        FILLCOLOR.cornsilk,
        STYLE.filled,
    ))


class Artefact(LibNode):
    defaults = dict((
        SHAPE.box3d,
        FILLCOLOR.wheat,
        STYLE.filled,
    ))


class Device(LibNode):
    defaults = dict((
        SHAPE.box3d,
        FILLCOLOR.wheat,
        STYLE.filled,
    ))


class StorageDevice(Device):
    pass


class FenceDevice(Device):
    pass