Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 1 | /* |
Jian Li | 79f6732 | 2016-01-06 18:22:37 -0800 | [diff] [blame] | 2 | * Copyright 2015,2016 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. |
| 21 | * <p> |
| 22 | * See also: |
| 23 | * <ul> |
| 24 | * <li> https://wiki.onosproject.org/display/ONOS/UI+Service+-+GlyphService </li> |
| 25 | * </ul> |
| 26 | */ |
| 27 | public final class TopoConstants { |
| 28 | |
| 29 | /** |
| 30 | * Defines constants for standard glyph identifiers. |
| 31 | */ |
| 32 | public static final class Glyphs { |
Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 33 | public static final String BIRD = "bird"; |
Simon Hunt | 707a2ac | 2016-02-25 20:14:23 -0800 | [diff] [blame] | 34 | |
| 35 | public static final String UNKNOWN = "unknown"; |
Simon Hunt | 13cc083 | 2015-10-22 09:23:32 -0700 | [diff] [blame] | 36 | public static final String QUERY = "query"; |
Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 37 | public static final String NODE = "node"; |
Simon Hunt | 707a2ac | 2016-02-25 20:14:23 -0800 | [diff] [blame] | 38 | |
Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 39 | public static final String SWITCH = "switch"; |
Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 40 | public static final String ROUTER = "router"; |
Simon Hunt | 707a2ac | 2016-02-25 20:14:23 -0800 | [diff] [blame] | 41 | 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 Hunt | 13cc083 | 2015-10-22 09:23:32 -0700 | [diff] [blame] | 45 | public static final String MICROWAVE = "microwave"; |
Simon Hunt | 707a2ac | 2016-02-25 20:14:23 -0800 | [diff] [blame] | 46 | |
| 47 | public static final String ENDSTATION = "endstation"; |
| 48 | public static final String BGP_SPEAKER = "bgpSpeaker"; |
| 49 | |
Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 50 | public static final String CHAIN = "chain"; |
| 51 | public static final String CROWN = "crown"; |
Simon Hunt | 13cc083 | 2015-10-22 09:23:32 -0700 | [diff] [blame] | 52 | public static final String LOCK = "lock"; |
Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 53 | public static final String TOPO = "topo"; |
| 54 | public static final String REFRESH = "refresh"; |
| 55 | public static final String GARBAGE = "garbage"; |
Simon Hunt | 707a2ac | 2016-02-25 20:14:23 -0800 | [diff] [blame] | 56 | |
Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 57 | public static final String FLOW_TABLE = "flowTable"; |
| 58 | public static final String PORT_TABLE = "portTable"; |
| 59 | public static final String GROUP_TABLE = "groupTable"; |
Simon Hunt | 707a2ac | 2016-02-25 20:14:23 -0800 | [diff] [blame] | 60 | public static final String METER_TABLE = "meterTable"; |
| 61 | |
Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 62 | 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 Hunt | 707a2ac | 2016-02-25 20:14:23 -0800 | [diff] [blame] | 77 | |
Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 78 | 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 Hunt | 707a2ac | 2016-02-25 20:14:23 -0800 | [diff] [blame] | 87 | |
Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 88 | public static final String CLOUD = "cloud"; |
| 89 | } |
Simon Hunt | fb94011 | 2015-07-29 18:36:35 -0700 | [diff] [blame] | 90 | |
| 91 | /** |
| 92 | * Defines constants for property names on the default summary and |
| 93 | * details panels. |
| 94 | */ |
| 95 | public static final class Properties { |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 96 | public static final String SEPARATOR = "-"; |
| 97 | |
Simon Hunt | fb94011 | 2015-07-29 18:36:35 -0700 | [diff] [blame] | 98 | // 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 Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 125 | /** |
Simon Hunt | 8d22c4b | 2015-08-06 16:24:43 -0700 | [diff] [blame] | 126 | * Defines identities of core buttons that appear on the topology |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 127 | * details panel. |
| 128 | */ |
| 129 | public static final class CoreButtons { |
Simon Hunt | 8d22c4b | 2015-08-06 16:24:43 -0700 | [diff] [blame] | 130 | public static final ButtonId SHOW_DEVICE_VIEW = |
| 131 | new ButtonId("showDeviceView"); |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 132 | |
Simon Hunt | 8d22c4b | 2015-08-06 16:24:43 -0700 | [diff] [blame] | 133 | public static final ButtonId SHOW_FLOW_VIEW = |
| 134 | new ButtonId("showFlowView"); |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 135 | |
Simon Hunt | 8d22c4b | 2015-08-06 16:24:43 -0700 | [diff] [blame] | 136 | public static final ButtonId SHOW_PORT_VIEW = |
| 137 | new ButtonId("showPortView"); |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 138 | |
Simon Hunt | 8d22c4b | 2015-08-06 16:24:43 -0700 | [diff] [blame] | 139 | public static final ButtonId SHOW_GROUP_VIEW = |
| 140 | new ButtonId("showGroupView"); |
Jian Li | 79f6732 | 2016-01-06 18:22:37 -0800 | [diff] [blame] | 141 | |
| 142 | public static final ButtonId SHOW_METER_VIEW = |
| 143 | new ButtonId("showMeterView"); |
Simon Hunt | 3a0598f | 2015-08-04 19:59:04 -0700 | [diff] [blame] | 144 | } |
| 145 | |
Simon Hunt | 629b99e | 2015-07-27 17:38:33 -0700 | [diff] [blame] | 146 | } |