blob: bf1e82907fc53ad09fba6c588cf8ef0394709cf0 [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.
Simon Hunt629b99e2015-07-27 17:38:33 -070021 */
22public final class TopoConstants {
23
24 /**
Simon Huntfb940112015-07-29 18:36:35 -070025 * Defines constants for property names on the default summary and
26 * details panels.
27 */
28 public static final class Properties {
Simon Hunt3a0598f2015-08-04 19:59:04 -070029 public static final String SEPARATOR = "-";
30
Simon Huntfb940112015-07-29 18:36:35 -070031 // summary panel
32 public static final String DEVICES = "Devices";
33 public static final String LINKS = "Links";
34 public static final String HOSTS = "Hosts";
35 public static final String TOPOLOGY_SSCS = "Topology SCCs";
36 public static final String INTENTS = "Intents";
37 public static final String TUNNELS = "Tunnels";
38 public static final String FLOWS = "Flows";
39 public static final String VERSION = "Version";
40
41 // device details
42 public static final String URI = "URI";
43 public static final String VENDOR = "Vendor";
44 public static final String HW_VERSION = "H/W Version";
45 public static final String SW_VERSION = "S/W Version";
Steven Burrows2762b242016-12-14 11:54:47 -050046 public static final String SERIAL_NUMBER = "Serial #";
Simon Huntfb940112015-07-29 18:36:35 -070047 public static final String PROTOCOL = "Protocol";
48 public static final String LATITUDE = "Latitude";
49 public static final String LONGITUDE = "Longitude";
50 public static final String PORTS = "Ports";
51
52 // host details
53 public static final String MAC = "MAC";
54 public static final String IP = "IP";
55 public static final String VLAN = "VLAN";
56 }
57
Simon Hunt3a0598f2015-08-04 19:59:04 -070058 /**
Simon Hunt8d22c4b2015-08-06 16:24:43 -070059 * Defines identities of core buttons that appear on the topology
Simon Hunt3a0598f2015-08-04 19:59:04 -070060 * details panel.
61 */
62 public static final class CoreButtons {
Simon Hunt8d22c4b2015-08-06 16:24:43 -070063 public static final ButtonId SHOW_DEVICE_VIEW =
64 new ButtonId("showDeviceView");
Simon Hunt3a0598f2015-08-04 19:59:04 -070065
Simon Hunt8d22c4b2015-08-06 16:24:43 -070066 public static final ButtonId SHOW_FLOW_VIEW =
67 new ButtonId("showFlowView");
Simon Hunt3a0598f2015-08-04 19:59:04 -070068
Simon Hunt8d22c4b2015-08-06 16:24:43 -070069 public static final ButtonId SHOW_PORT_VIEW =
70 new ButtonId("showPortView");
Simon Hunt3a0598f2015-08-04 19:59:04 -070071
Simon Hunt8d22c4b2015-08-06 16:24:43 -070072 public static final ButtonId SHOW_GROUP_VIEW =
73 new ButtonId("showGroupView");
Jian Li79f67322016-01-06 18:22:37 -080074
75 public static final ButtonId SHOW_METER_VIEW =
76 new ButtonId("showMeterView");
Simon Hunt3a0598f2015-08-04 19:59:04 -070077 }
Simon Hunt629b99e2015-07-27 17:38:33 -070078}