source: xssim/trunk/src/schedframe/net/pce/topology/Node.java @ 104

Revision 104, 1.3 KB checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package schedframe.net.pce.topology;
2
3/**
4 * Class representing a node. It's either GRID SITE or NETWORK NODE.
5 *
6 * @author Bartosz Belter <bartosz.belter at man.poznan.pl>
7 *
8 */
9public class Node {
10
11        /**
12         * Node id (e.g. router id)
13         */
14        String id;
15
16        /**
17         * Node type
18         */
19        NodeType type;
20       
21        /**
22         * Node name
23         */
24        String name;
25       
26        /**
27         * Additional information
28         */
29        String description;
30
31        public Node(String id, NodeType type) {
32                super();
33                this.id = id;
34                this.type = type;
35        }
36
37       
38       
39        /**
40         * @return the id
41         */
42        public String getId() {
43                return id;             
44        }
45
46        /**
47         * @param id the id to set
48         */
49        public void setId(String id) {
50                this.id = id;
51        }
52
53        /**
54         * @return the type
55         */
56        public NodeType getType() {
57                return type;
58        }
59
60        /**
61         * @param type the type to set
62         */
63        public void setType(NodeType type) {
64                this.type = type;
65        }
66
67        /**
68         * @return the name
69         */
70        public String getName() {
71                return name;
72        }
73
74        /**
75         * @param name the name to set
76         */
77        public void setName(String name) {
78                this.name = name;
79        }
80
81        /**
82         * @return the description
83         */
84        public String getDescription() {
85                return description;
86        }
87
88        /**
89         * @param description the description to set
90         */
91        public void setDescription(String description) {
92                this.description = description;
93        }
94       
95       
96       
97       
98}
Note: See TracBrowser for help on using the repository browser.