Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Laboratory |
Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 3 | * |
| 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 Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | package org.onosproject.ui.topo; |
| 18 | |
| 19 | /** |
| 20 | * Defines string constants used in the Topology View of the ONOS GUI. |
Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 21 | */ |
| 22 | public final class TopoConstants { |
| 23 | |
| 24 | /** |
Simon Hunt | fb94011 | 2015-07-29 18:36:35 -0700 | [diff] [blame] | 25 | * Defines constants for property names on the default summary and |
| 26 | * details panels. |
| 27 | */ |
| 28 | public static final class Properties { |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 29 | public static final String SEPARATOR = "-"; |
| 30 | |
Simon Hunt | fb94011 | 2015-07-29 18:36:35 -0700 | [diff] [blame] | 31 | // 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 Burrows | 2762b24 | 2016-12-14 11:54:47 -0500 | [diff] [blame] | 46 | public static final String SERIAL_NUMBER = "Serial #"; |
Simon Hunt | fb94011 | 2015-07-29 18:36:35 -0700 | [diff] [blame] | 47 | public static final String PROTOCOL = "Protocol"; |
| 48 | public static final String LATITUDE = "Latitude"; |
| 49 | public static final String LONGITUDE = "Longitude"; |
Simon Hunt | bc30e68 | 2017-02-15 18:39:23 -0800 | [diff] [blame] | 50 | public static final String GRID_Y = "Grid Y"; |
| 51 | public static final String GRID_X = "Grid X"; |
Simon Hunt | fb94011 | 2015-07-29 18:36:35 -0700 | [diff] [blame] | 52 | public static final String PORTS = "Ports"; |
| 53 | |
| 54 | // host details |
| 55 | public static final String MAC = "MAC"; |
| 56 | public static final String IP = "IP"; |
| 57 | public static final String VLAN = "VLAN"; |
| 58 | } |
| 59 | |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 60 | /** |
Simon Hunt | 8d22c4b | 2015-08-06 16:24:43 -0700 | [diff] [blame] | 61 | * Defines identities of core buttons that appear on the topology |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 62 | * details panel. |
| 63 | */ |
| 64 | public static final class CoreButtons { |
Simon Hunt | 8d22c4b | 2015-08-06 16:24:43 -0700 | [diff] [blame] | 65 | public static final ButtonId SHOW_DEVICE_VIEW = |
| 66 | new ButtonId("showDeviceView"); |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 67 | |
Simon Hunt | 8d22c4b | 2015-08-06 16:24:43 -0700 | [diff] [blame] | 68 | public static final ButtonId SHOW_FLOW_VIEW = |
| 69 | new ButtonId("showFlowView"); |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 70 | |
Simon Hunt | 8d22c4b | 2015-08-06 16:24:43 -0700 | [diff] [blame] | 71 | public static final ButtonId SHOW_PORT_VIEW = |
| 72 | new ButtonId("showPortView"); |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 73 | |
Simon Hunt | 8d22c4b | 2015-08-06 16:24:43 -0700 | [diff] [blame] | 74 | public static final ButtonId SHOW_GROUP_VIEW = |
| 75 | new ButtonId("showGroupView"); |
Jian Li | 79f6732 | 2016-01-06 18:22:37 -0800 | [diff] [blame] | 76 | |
| 77 | public static final ButtonId SHOW_METER_VIEW = |
| 78 | new ButtonId("showMeterView"); |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 79 | } |
Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 80 | } |