Committed by
Gerrit Code Review
ONOS-2186 - GUI Topo Overlay - (WIP)
- moved TopoUtils, NodeSelection, BiLink and Map (and Base derivatives) to core API. Change-Id: I105f6df6508b1597ffde19fe7e360d3775abf250
Showing
13 changed files
with
16 additions
and
14 deletions
... | @@ -15,11 +15,10 @@ | ... | @@ -15,11 +15,10 @@ |
15 | * | 15 | * |
16 | */ | 16 | */ |
17 | 17 | ||
18 | -package org.onosproject.ui.impl.topo; | 18 | +package org.onosproject.ui.topo; |
19 | 19 | ||
20 | import org.onosproject.net.Link; | 20 | import org.onosproject.net.Link; |
21 | import org.onosproject.net.LinkKey; | 21 | import org.onosproject.net.LinkKey; |
22 | -import org.onosproject.ui.topo.LinkHighlight; | ||
23 | 22 | ||
24 | /** | 23 | /** |
25 | * A simple concrete implementation of a {@link BiLink}. | 24 | * A simple concrete implementation of a {@link BiLink}. | ... | ... |
... | @@ -15,7 +15,7 @@ | ... | @@ -15,7 +15,7 @@ |
15 | * | 15 | * |
16 | */ | 16 | */ |
17 | 17 | ||
18 | -package org.onosproject.ui.impl.topo; | 18 | +package org.onosproject.ui.topo; |
19 | 19 | ||
20 | import org.onosproject.net.Link; | 20 | import org.onosproject.net.Link; |
21 | import org.onosproject.net.LinkKey; | 21 | import org.onosproject.net.LinkKey; | ... | ... |
... | @@ -15,11 +15,10 @@ | ... | @@ -15,11 +15,10 @@ |
15 | * | 15 | * |
16 | */ | 16 | */ |
17 | 17 | ||
18 | -package org.onosproject.ui.impl.topo; | 18 | +package org.onosproject.ui.topo; |
19 | 19 | ||
20 | import org.onosproject.net.Link; | 20 | import org.onosproject.net.Link; |
21 | import org.onosproject.net.LinkKey; | 21 | import org.onosproject.net.LinkKey; |
22 | -import org.onosproject.ui.topo.LinkHighlight; | ||
23 | 22 | ||
24 | import static com.google.common.base.Preconditions.checkNotNull; | 23 | import static com.google.common.base.Preconditions.checkNotNull; |
25 | 24 | ... | ... |
... | @@ -15,7 +15,7 @@ | ... | @@ -15,7 +15,7 @@ |
15 | * | 15 | * |
16 | */ | 16 | */ |
17 | 17 | ||
18 | -package org.onosproject.ui.impl.topo; | 18 | +package org.onosproject.ui.topo; |
19 | 19 | ||
20 | import org.onosproject.net.Link; | 20 | import org.onosproject.net.Link; |
21 | import org.onosproject.net.LinkKey; | 21 | import org.onosproject.net.LinkKey; | ... | ... |
... | @@ -15,7 +15,7 @@ | ... | @@ -15,7 +15,7 @@ |
15 | * | 15 | * |
16 | */ | 16 | */ |
17 | 17 | ||
18 | -package org.onosproject.ui.impl.topo; | 18 | +package org.onosproject.ui.topo; |
19 | 19 | ||
20 | import com.fasterxml.jackson.databind.JsonNode; | 20 | import com.fasterxml.jackson.databind.JsonNode; |
21 | import com.fasterxml.jackson.databind.node.ArrayNode; | 21 | import com.fasterxml.jackson.databind.node.ArrayNode; | ... | ... |
... | @@ -15,7 +15,7 @@ | ... | @@ -15,7 +15,7 @@ |
15 | * | 15 | * |
16 | */ | 16 | */ |
17 | 17 | ||
18 | -package org.onosproject.ui.impl.topo; | 18 | +package org.onosproject.ui.topo; |
19 | 19 | ||
20 | import org.onosproject.net.Link; | 20 | import org.onosproject.net.Link; |
21 | import org.onosproject.net.LinkKey; | 21 | import org.onosproject.net.LinkKey; | ... | ... |
... | @@ -22,8 +22,8 @@ import org.onosproject.net.Link; | ... | @@ -22,8 +22,8 @@ import org.onosproject.net.Link; |
22 | import org.onosproject.net.link.LinkService; | 22 | import org.onosproject.net.link.LinkService; |
23 | import org.onosproject.ui.RequestHandler; | 23 | import org.onosproject.ui.RequestHandler; |
24 | import org.onosproject.ui.UiMessageHandler; | 24 | import org.onosproject.ui.UiMessageHandler; |
25 | -import org.onosproject.ui.impl.topo.BaseLink; | 25 | +import org.onosproject.ui.topo.BaseLink; |
26 | -import org.onosproject.ui.impl.topo.BaseLinkMap; | 26 | +import org.onosproject.ui.topo.BaseLinkMap; |
27 | import org.onosproject.ui.table.TableModel; | 27 | import org.onosproject.ui.table.TableModel; |
28 | import org.onosproject.ui.table.TableRequestHandler; | 28 | import org.onosproject.ui.table.TableRequestHandler; |
29 | import org.onosproject.ui.table.cell.ConnectPointFormatter; | 29 | import org.onosproject.ui.table.cell.ConnectPointFormatter; | ... | ... |
... | @@ -57,7 +57,7 @@ import org.onosproject.ui.JsonUtils; | ... | @@ -57,7 +57,7 @@ import org.onosproject.ui.JsonUtils; |
57 | import org.onosproject.ui.RequestHandler; | 57 | import org.onosproject.ui.RequestHandler; |
58 | import org.onosproject.ui.UiConnection; | 58 | import org.onosproject.ui.UiConnection; |
59 | import org.onosproject.ui.impl.TrafficMonitor.Mode; | 59 | import org.onosproject.ui.impl.TrafficMonitor.Mode; |
60 | -import org.onosproject.ui.impl.topo.NodeSelection; | 60 | +import org.onosproject.ui.topo.NodeSelection; |
61 | import org.onosproject.ui.topo.Highlights; | 61 | import org.onosproject.ui.topo.Highlights; |
62 | import org.onosproject.ui.topo.PropertyPanel; | 62 | import org.onosproject.ui.topo.PropertyPanel; |
63 | 63 | ... | ... |
... | @@ -96,7 +96,7 @@ import static org.onosproject.net.host.HostEvent.Type.HOST_ADDED; | ... | @@ -96,7 +96,7 @@ import static org.onosproject.net.host.HostEvent.Type.HOST_ADDED; |
96 | import static org.onosproject.net.host.HostEvent.Type.HOST_REMOVED; | 96 | import static org.onosproject.net.host.HostEvent.Type.HOST_REMOVED; |
97 | import static org.onosproject.net.link.LinkEvent.Type.LINK_ADDED; | 97 | import static org.onosproject.net.link.LinkEvent.Type.LINK_ADDED; |
98 | import static org.onosproject.net.link.LinkEvent.Type.LINK_REMOVED; | 98 | import static org.onosproject.net.link.LinkEvent.Type.LINK_REMOVED; |
99 | -import static org.onosproject.ui.impl.topo.TopoUtils.compactLinkString; | 99 | +import static org.onosproject.ui.topo.TopoUtils.compactLinkString; |
100 | import static org.onosproject.ui.topo.TopoConstants.CoreButtons; | 100 | import static org.onosproject.ui.topo.TopoConstants.CoreButtons; |
101 | import static org.onosproject.ui.topo.TopoConstants.Properties; | 101 | import static org.onosproject.ui.topo.TopoConstants.Properties; |
102 | 102 | ... | ... |
... | @@ -35,9 +35,9 @@ import org.onosproject.net.intent.OpticalPathIntent; | ... | @@ -35,9 +35,9 @@ import org.onosproject.net.intent.OpticalPathIntent; |
35 | import org.onosproject.net.intent.PathIntent; | 35 | import org.onosproject.net.intent.PathIntent; |
36 | import org.onosproject.net.statistic.Load; | 36 | import org.onosproject.net.statistic.Load; |
37 | import org.onosproject.ui.impl.topo.IntentSelection; | 37 | import org.onosproject.ui.impl.topo.IntentSelection; |
38 | -import org.onosproject.ui.impl.topo.NodeSelection; | 38 | +import org.onosproject.ui.topo.NodeSelection; |
39 | import org.onosproject.ui.impl.topo.ServicesBundle; | 39 | import org.onosproject.ui.impl.topo.ServicesBundle; |
40 | -import org.onosproject.ui.impl.topo.TopoUtils; | 40 | +import org.onosproject.ui.topo.TopoUtils; |
41 | import org.onosproject.ui.impl.topo.TopoIntentFilter; | 41 | import org.onosproject.ui.impl.topo.TopoIntentFilter; |
42 | import org.onosproject.ui.impl.topo.TrafficClass; | 42 | import org.onosproject.ui.impl.topo.TrafficClass; |
43 | import org.onosproject.ui.impl.topo.TrafficLink; | 43 | import org.onosproject.ui.impl.topo.TrafficLink; | ... | ... |
... | @@ -18,6 +18,7 @@ | ... | @@ -18,6 +18,7 @@ |
18 | package org.onosproject.ui.impl.topo; | 18 | package org.onosproject.ui.impl.topo; |
19 | 19 | ||
20 | import org.onosproject.net.intent.Intent; | 20 | import org.onosproject.net.intent.Intent; |
21 | +import org.onosproject.ui.topo.NodeSelection; | ||
21 | import org.slf4j.Logger; | 22 | import org.slf4j.Logger; |
22 | import org.slf4j.LoggerFactory; | 23 | import org.slf4j.LoggerFactory; |
23 | 24 | ... | ... |
... | @@ -20,8 +20,10 @@ package org.onosproject.ui.impl.topo; | ... | @@ -20,8 +20,10 @@ package org.onosproject.ui.impl.topo; |
20 | import org.onosproject.net.Link; | 20 | import org.onosproject.net.Link; |
21 | import org.onosproject.net.LinkKey; | 21 | import org.onosproject.net.LinkKey; |
22 | import org.onosproject.net.statistic.Load; | 22 | import org.onosproject.net.statistic.Load; |
23 | +import org.onosproject.ui.topo.BiLink; | ||
23 | import org.onosproject.ui.topo.LinkHighlight; | 24 | import org.onosproject.ui.topo.LinkHighlight; |
24 | import org.onosproject.ui.topo.LinkHighlight.Flavor; | 25 | import org.onosproject.ui.topo.LinkHighlight.Flavor; |
26 | +import org.onosproject.ui.topo.TopoUtils; | ||
25 | 27 | ||
26 | import static org.onosproject.ui.topo.LinkHighlight.Flavor.NO_HIGHLIGHT; | 28 | import static org.onosproject.ui.topo.LinkHighlight.Flavor.NO_HIGHLIGHT; |
27 | import static org.onosproject.ui.topo.LinkHighlight.Flavor.PRIMARY_HIGHLIGHT; | 29 | import static org.onosproject.ui.topo.LinkHighlight.Flavor.PRIMARY_HIGHLIGHT; | ... | ... |
... | @@ -19,6 +19,7 @@ package org.onosproject.ui.impl.topo; | ... | @@ -19,6 +19,7 @@ package org.onosproject.ui.impl.topo; |
19 | 19 | ||
20 | import org.onosproject.net.Link; | 20 | import org.onosproject.net.Link; |
21 | import org.onosproject.net.LinkKey; | 21 | import org.onosproject.net.LinkKey; |
22 | +import org.onosproject.ui.topo.BiLinkMap; | ||
22 | 23 | ||
23 | /** | 24 | /** |
24 | * Collection of {@link TrafficLink}s. | 25 | * Collection of {@link TrafficLink}s. | ... | ... |
-
Please register or login to post a comment