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"; |
| 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 Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 58 | /** |
Simon Hunt | 8d22c4b | 2015-08-06 16:24:43 -0700 | [diff] [blame] | 59 | * Defines identities of core buttons that appear on the topology |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 60 | * details panel. |
| 61 | */ |
| 62 | public static final class CoreButtons { |
Simon Hunt | 8d22c4b | 2015-08-06 16:24:43 -0700 | [diff] [blame] | 63 | public static final ButtonId SHOW_DEVICE_VIEW = |
| 64 | new ButtonId("showDeviceView"); |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 65 | |
Simon Hunt | 8d22c4b | 2015-08-06 16:24:43 -0700 | [diff] [blame] | 66 | public static final ButtonId SHOW_FLOW_VIEW = |
| 67 | new ButtonId("showFlowView"); |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 68 | |
Simon Hunt | 8d22c4b | 2015-08-06 16:24:43 -0700 | [diff] [blame] | 69 | public static final ButtonId SHOW_PORT_VIEW = |
| 70 | new ButtonId("showPortView"); |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 71 | |
Simon Hunt | 8d22c4b | 2015-08-06 16:24:43 -0700 | [diff] [blame] | 72 | public static final ButtonId SHOW_GROUP_VIEW = |
| 73 | new ButtonId("showGroupView"); |
Jian Li | 79f6732 | 2016-01-06 18:22:37 -0800 | [diff] [blame] | 74 | |
| 75 | public static final ButtonId SHOW_METER_VIEW = |
| 76 | new ButtonId("showMeterView"); |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 77 | } |
Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 78 | } |