blob: 63cbe4cd735cd2ab5230c07e453e6c0f108e082c [file] [log] [blame]
Simon Hunt629b99e2015-07-27 17:38:33 -07001/*
Jian Li79f67322016-01-06 18:22:37 -08002 * Copyright 2015,2016 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 {
33 public static final String UNKNOWN = "unknown";
34 public static final String BIRD = "bird";
Simon Hunt13cc0832015-10-22 09:23:32 -070035 public static final String QUERY = "query";
Simon Hunt629b99e2015-07-27 17:38:33 -070036 public static final String NODE = "node";
37 public static final String SWITCH = "switch";
38 public static final String ROADM = "roadm";
39 public static final String ENDSTATION = "endstation";
40 public static final String ROUTER = "router";
41 public static final String BGP_SPEAKER = "bgpSpeaker";
Simon Hunt13cc0832015-10-22 09:23:32 -070042 public static final String MICROWAVE = "microwave";
Simon Hunt629b99e2015-07-27 17:38:33 -070043 public static final String CHAIN = "chain";
44 public static final String CROWN = "crown";
Simon Hunt13cc0832015-10-22 09:23:32 -070045 public static final String LOCK = "lock";
Simon Hunt629b99e2015-07-27 17:38:33 -070046 public static final String TOPO = "topo";
47 public static final String REFRESH = "refresh";
48 public static final String GARBAGE = "garbage";
49 public static final String FLOW_TABLE = "flowTable";
50 public static final String PORT_TABLE = "portTable";
51 public static final String GROUP_TABLE = "groupTable";
52 public static final String SUMMARY = "summary";
53 public static final String DETAILS = "details";
54 public static final String PORTS = "ports";
55 public static final String MAP = "map";
56 public static final String CYCLE_LABELS = "cycleLabels";
57 public static final String OBLIQUE = "oblique";
58 public static final String FILTERS = "filters";
59 public static final String RESET_ZOOM = "resetZoom";
60 public static final String RELATED_INTENTS = "relatedIntents";
61 public static final String NEXT_INTENT = "nextIntent";
62 public static final String PREV_INTENT = "prevIntent";
63 public static final String INTENT_TRAFFIC = "intentTraffic";
64 public static final String ALL_TRAFFIC = "allTraffic";
65 public static final String FLOWS = "flows";
66 public static final String EQ_MASTER = "eqMaster";
67 public static final String UI_ATTACHED = "uiAttached";
68 public static final String CHECK_MARK = "checkMark";
69 public static final String X_MARK = "xMark";
70 public static final String TRIANGLE_UP = "triangleUp";
71 public static final String TRIANGLE_DOWN = "triangleDown";
72 public static final String PLUS = "plus";
73 public static final String MINUS = "minus";
74 public static final String PLAY = "play";
75 public static final String STOP = "stop";
76 public static final String CLOUD = "cloud";
77 }
Simon Huntfb940112015-07-29 18:36:35 -070078
79 /**
80 * Defines constants for property names on the default summary and
81 * details panels.
82 */
83 public static final class Properties {
Simon Hunt3a0598f2015-08-04 19:59:04 -070084 public static final String SEPARATOR = "-";
85
Simon Huntfb940112015-07-29 18:36:35 -070086 // summary panel
87 public static final String DEVICES = "Devices";
88 public static final String LINKS = "Links";
89 public static final String HOSTS = "Hosts";
90 public static final String TOPOLOGY_SSCS = "Topology SCCs";
91 public static final String INTENTS = "Intents";
92 public static final String TUNNELS = "Tunnels";
93 public static final String FLOWS = "Flows";
94 public static final String VERSION = "Version";
95
96 // device details
97 public static final String URI = "URI";
98 public static final String VENDOR = "Vendor";
99 public static final String HW_VERSION = "H/W Version";
100 public static final String SW_VERSION = "S/W Version";
101 public static final String SERIAL_NUMBER = "Serial Number";
102 public static final String PROTOCOL = "Protocol";
103 public static final String LATITUDE = "Latitude";
104 public static final String LONGITUDE = "Longitude";
105 public static final String PORTS = "Ports";
106
107 // host details
108 public static final String MAC = "MAC";
109 public static final String IP = "IP";
110 public static final String VLAN = "VLAN";
111 }
112
Simon Hunt3a0598f2015-08-04 19:59:04 -0700113 /**
Simon Hunt8d22c4b2015-08-06 16:24:43 -0700114 * Defines identities of core buttons that appear on the topology
Simon Hunt3a0598f2015-08-04 19:59:04 -0700115 * details panel.
116 */
117 public static final class CoreButtons {
Simon Hunt8d22c4b2015-08-06 16:24:43 -0700118 public static final ButtonId SHOW_DEVICE_VIEW =
119 new ButtonId("showDeviceView");
Simon Hunt3a0598f2015-08-04 19:59:04 -0700120
Simon Hunt8d22c4b2015-08-06 16:24:43 -0700121 public static final ButtonId SHOW_FLOW_VIEW =
122 new ButtonId("showFlowView");
Simon Hunt3a0598f2015-08-04 19:59:04 -0700123
Simon Hunt8d22c4b2015-08-06 16:24:43 -0700124 public static final ButtonId SHOW_PORT_VIEW =
125 new ButtonId("showPortView");
Simon Hunt3a0598f2015-08-04 19:59:04 -0700126
Simon Hunt8d22c4b2015-08-06 16:24:43 -0700127 public static final ButtonId SHOW_GROUP_VIEW =
128 new ButtonId("showGroupView");
Jian Li79f67322016-01-06 18:22:37 -0800129
130 public static final ButtonId SHOW_METER_VIEW =
131 new ButtonId("showMeterView");
Simon Hunt3a0598f2015-08-04 19:59:04 -0700132 }
133
Simon Hunt629b99e2015-07-27 17:38:33 -0700134}