sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame] | 1 | /* |
| 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 | package org.onosproject.isis.controller.topology; |
| 17 | |
| 18 | import org.onlab.packet.Ip4Address; |
| 19 | |
| 20 | /** |
| 21 | * Representation of an ISIS device information. |
| 22 | */ |
| 23 | public interface DeviceInformation { |
| 24 | |
| 25 | /** |
| 26 | * Gets system id. |
| 27 | * |
| 28 | * @return system id |
| 29 | */ |
| 30 | String systemId(); |
| 31 | |
| 32 | /** |
| 33 | * Sets system id. |
| 34 | * |
| 35 | * @param systemId system id |
| 36 | */ |
| 37 | void setSystemId(String systemId); |
| 38 | |
| 39 | /** |
| 40 | * Gets interface ids. |
| 41 | * |
| 42 | * @return interface ids |
| 43 | */ |
| 44 | Ip4Address interfaceId(); |
| 45 | |
| 46 | /** |
| 47 | * Sets interface id. |
| 48 | * |
| 49 | * @param interfaceId interface id |
| 50 | */ |
| 51 | void setInterfaceId(Ip4Address interfaceId); |
| 52 | |
| 53 | /** |
| 54 | * Gets area id. |
| 55 | * |
| 56 | * @return area id |
| 57 | */ |
| 58 | String areaId(); |
| 59 | |
| 60 | /** |
| 61 | * Sets area id. |
| 62 | * |
| 63 | * @param areaId area id |
| 64 | */ |
| 65 | void setAreaId(String areaId); |
| 66 | |
| 67 | /** |
| 68 | * Gets device information is already created or not. |
| 69 | * |
| 70 | * @return true if device information is already created else false |
| 71 | */ |
| 72 | boolean isAlreadyCreated(); |
| 73 | |
| 74 | /** |
| 75 | * Sets device information is already created or not. |
| 76 | * |
| 77 | * @param alreadyCreated true if device information is already created else false |
| 78 | */ |
| 79 | void setAlreadyCreated(boolean alreadyCreated); |
| 80 | |
| 81 | /** |
| 82 | * Gets device is dis or not. |
| 83 | * |
| 84 | * @return true if device is dis else false |
| 85 | */ |
| 86 | boolean isDis(); |
| 87 | |
| 88 | /** |
| 89 | * Sets device is dis or not. |
| 90 | * |
| 91 | * @param dis true if device is dr else false |
| 92 | */ |
| 93 | void setDis(boolean dis); |
| 94 | |
| 95 | /** |
| 96 | * Gets neighbor id. |
| 97 | * |
| 98 | * @return neighbor id |
| 99 | */ |
| 100 | String neighborId(); |
| 101 | |
| 102 | /** |
| 103 | * Sets neighbor id. |
| 104 | * |
| 105 | * @param neighborId neighbor id |
| 106 | */ |
| 107 | void setNeighborId(String neighborId); |
| 108 | } |