blob: e2545985e5e92f38b02c2145f47ddbce5df1d6aa [file] [log] [blame]
Simon Hunt629b99e2015-07-27 17:38:33 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Simon Hunt629b99e2015-07-27 17:38:33 -07003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
Simon Hunt629b99e2015-07-27 17:38:33 -070015 */
16
17package org.onosproject.ui.topo;
18
19/**
20 * Defines string constants used in the Topology View of the ONOS GUI.
21 * <p>
22 * See also:
23 * <ul>
24 * <li> https://wiki.onosproject.org/display/ONOS/UI+Service+-+GlyphService </li>
25 * </ul>
26 */
27public final class TopoConstants {
28
29 /**
30 * Defines constants for standard glyph identifiers.
31 */
32 public static final class Glyphs {
Simon Hunt629b99e2015-07-27 17:38:33 -070033 public static final String BIRD = "bird";
Simon Hunt707a2ac2016-02-25 20:14:23 -080034
35 public static final String UNKNOWN = "unknown";
Simon Hunt13cc0832015-10-22 09:23:32 -070036 public static final String QUERY = "query";
Simon Hunt629b99e2015-07-27 17:38:33 -070037 public static final String NODE = "node";
Simon Hunt707a2ac2016-02-25 20:14:23 -080038
Simon Hunt629b99e2015-07-27 17:38:33 -070039 public static final String SWITCH = "switch";
Simon Hunt629b99e2015-07-27 17:38:33 -070040 public static final String ROUTER = "router";
Simon Hunt707a2ac2016-02-25 20:14:23 -080041 public static final String ROADM = "roadm";
42 public static final String OTN = "otn";
43 public static final String ROADM_OTN = "roadm_otn";
44 public static final String FIBER_SWITCH = "fiber_switch";
Simon Hunt13cc0832015-10-22 09:23:32 -070045 public static final String MICROWAVE = "microwave";
Simon Hunt707a2ac2016-02-25 20:14:23 -080046
47 public static final String ENDSTATION = "endstation";
48 public static final String BGP_SPEAKER = "bgpSpeaker";
49
Simon Hunt629b99e2015-07-27 17:38:33 -070050 public static final String CHAIN = "chain";
51 public static final String CROWN = "crown";
Simon Hunt13cc0832015-10-22 09:23:32 -070052 public static final String LOCK = "lock";
Simon Hunt629b99e2015-07-27 17:38:33 -070053 public static final String TOPO = "topo";
54 public static final String REFRESH = "refresh";
55 public static final String GARBAGE = "garbage";
Simon Hunt707a2ac2016-02-25 20:14:23 -080056
Simon Hunt629b99e2015-07-27 17:38:33 -070057 public static final String FLOW_TABLE = "flowTable";
58 public static final String PORT_TABLE = "portTable";
59 public static final String GROUP_TABLE = "groupTable";
Simon Hunt707a2ac2016-02-25 20:14:23 -080060 public static final String METER_TABLE = "meterTable";
61
Simon Hunt629b99e2015-07-27 17:38:33 -070062 public static final String SUMMARY = "summary";
63 public static final String DETAILS = "details";
64 public static final String PORTS = "ports";
65 public static final String MAP = "map";
66 public static final String CYCLE_LABELS = "cycleLabels";
67 public static final String OBLIQUE = "oblique";
68 public static final String FILTERS = "filters";
69 public static final String RESET_ZOOM = "resetZoom";
70 public static final String RELATED_INTENTS = "relatedIntents";
71 public static final String NEXT_INTENT = "nextIntent";
72 public static final String PREV_INTENT = "prevIntent";
73 public static final String INTENT_TRAFFIC = "intentTraffic";
74 public static final String ALL_TRAFFIC = "allTraffic";
75 public static final String FLOWS = "flows";
76 public static final String EQ_MASTER = "eqMaster";
Simon Hunt707a2ac2016-02-25 20:14:23 -080077
Simon Hunt629b99e2015-07-27 17:38:33 -070078 public static final String UI_ATTACHED = "uiAttached";
79 public static final String CHECK_MARK = "checkMark";
80 public static final String X_MARK = "xMark";
81 public static final String TRIANGLE_UP = "triangleUp";
82 public static final String TRIANGLE_DOWN = "triangleDown";
83 public static final String PLUS = "plus";
84 public static final String MINUS = "minus";
85 public static final String PLAY = "play";
86 public static final String STOP = "stop";
Simon Hunt707a2ac2016-02-25 20:14:23 -080087
Simon Hunt629b99e2015-07-27 17:38:33 -070088 public static final String CLOUD = "cloud";
89 }
Simon Huntfb940112015-07-29 18:36:35 -070090
91 /**
92 * Defines constants for property names on the default summary and
93 * details panels.
94 */
95 public static final class Properties {
Simon Hunt3a0598f2015-08-04 19:59:04 -070096 public static final String SEPARATOR = "-";
97
Simon Huntfb940112015-07-29 18:36:35 -070098 // summary panel
99 public static final String DEVICES = "Devices";
100 public static final String LINKS = "Links";
101 public static final String HOSTS = "Hosts";
102 public static final String TOPOLOGY_SSCS = "Topology SCCs";
103 public static final String INTENTS = "Intents";
104 public static final String TUNNELS = "Tunnels";
105 public static final String FLOWS = "Flows";
106 public static final String VERSION = "Version";
107
108 // device details
109 public static final String URI = "URI";
110 public static final String VENDOR = "Vendor";
111 public static final String HW_VERSION = "H/W Version";
112 public static final String SW_VERSION = "S/W Version";
113 public static final String SERIAL_NUMBER = "Serial Number";
114 public static final String PROTOCOL = "Protocol";
115 public static final String LATITUDE = "Latitude";
116 public static final String LONGITUDE = "Longitude";
117 public static final String PORTS = "Ports";
118
119 // host details
120 public static final String MAC = "MAC";
121 public static final String IP = "IP";
122 public static final String VLAN = "VLAN";
123 }
124
Simon Hunt3a0598f2015-08-04 19:59:04 -0700125 /**
Simon Hunt8d22c4b2015-08-06 16:24:43 -0700126 * Defines identities of core buttons that appear on the topology
Simon Hunt3a0598f2015-08-04 19:59:04 -0700127 * details panel.
128 */
129 public static final class CoreButtons {
Simon Hunt8d22c4b2015-08-06 16:24:43 -0700130 public static final ButtonId SHOW_DEVICE_VIEW =
131 new ButtonId("showDeviceView");
Simon Hunt3a0598f2015-08-04 19:59:04 -0700132
Simon Hunt8d22c4b2015-08-06 16:24:43 -0700133 public static final ButtonId SHOW_FLOW_VIEW =
134 new ButtonId("showFlowView");
Simon Hunt3a0598f2015-08-04 19:59:04 -0700135
Simon Hunt8d22c4b2015-08-06 16:24:43 -0700136 public static final ButtonId SHOW_PORT_VIEW =
137 new ButtonId("showPortView");
Simon Hunt3a0598f2015-08-04 19:59:04 -0700138
Simon Hunt8d22c4b2015-08-06 16:24:43 -0700139 public static final ButtonId SHOW_GROUP_VIEW =
140 new ButtonId("showGroupView");
Jian Li79f67322016-01-06 18:22:37 -0800141
142 public static final ButtonId SHOW_METER_VIEW =
143 new ButtonId("showMeterView");
Simon Hunt3a0598f2015-08-04 19:59:04 -0700144 }
145
Simon Hunt629b99e2015-07-27 17:38:33 -0700146}