blob: 9ba67abd8e44e453bbc631d547e7cb3124bfe744 [file] [log] [blame]
Steven Burrows3a9a6442016-05-05 15:31:16 +01001/*
2 * Copyright 2016 Open Networking Laboratory
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.
15 */
16
17package org.onosproject.ui;
18
19/**
20 * Represents user interface topology view overlay.
21 */
22public class UiTopoMap {
23
24 private final String id;
25 private final String description;
26 private final String filePath;
27 private final double scale;
28
29
30 /**
31 * Creates a new topology map.
32 *
33 * @param id map identifier
34 * @param description map description
35 * @param filePath map filePath,
36 * @param scale map scale,
37 */
38 public UiTopoMap(String id, String description, String filePath, double scale) {
39 this.id = id;
40 this.description = description;
41 this.filePath = filePath;
42 this.scale = scale;
43 }
44
45 /**
46 * Returns the identifier for this map.
47 *
48 * @return the identifier
49 */
50 public String getId() {
51 return this.id;
52 }
53
54 /**
55 * Returns the description for this map.
56 *
57 * @return the description
58 */
59 public String getDescription() {
60 return this.description;
61 }
62
63 /**
64 * Returns the filePath for this map.
65 *
66 * @return the filePath
67 */
68 public String getFilePath() {
69 return this.filePath;
70 }
71
72 /**
73 * Returns the scale for this map.
74 *
75 * @return the scale
76 */
77 public double getScale() {
78 return this.scale;
79 }
80
81}