Committed by
Gerrit Code Review
remove info about the vendor,fix javadoc errors
Change-Id: I740b6276f2daa171c4e5320c46aba5a9427ad46c
Showing
2 changed files
with
15 additions
and
24 deletions
| ... | @@ -16,7 +16,7 @@ | ... | @@ -16,7 +16,7 @@ |
| 16 | package org.onosproject.pcep.api; | 16 | package org.onosproject.pcep.api; |
| 17 | 17 | ||
| 18 | /** | 18 | /** |
| 19 | - * Abstraction of a huawei network infrastructure link. | 19 | + * Abstraction of a network infrastructure link. |
| 20 | */ | 20 | */ |
| 21 | public interface PcepLink extends PcepOperator { | 21 | public interface PcepLink extends PcepOperator { |
| 22 | 22 | ||
| ... | @@ -53,14 +53,14 @@ public interface PcepLink extends PcepOperator { | ... | @@ -53,14 +53,14 @@ public interface PcepLink extends PcepOperator { |
| 53 | } | 53 | } |
| 54 | 54 | ||
| 55 | /** | 55 | /** |
| 56 | - * Get the link endpoint port type. | 56 | + * Returns the link endpoint port type. |
| 57 | * | 57 | * |
| 58 | * @return endpoint port type | 58 | * @return endpoint port type |
| 59 | */ | 59 | */ |
| 60 | public PortType portType(); | 60 | public PortType portType(); |
| 61 | 61 | ||
| 62 | /** | 62 | /** |
| 63 | - * Get the link sub type,OTS,OPS,PKT_OPTICAL or ODUK. | 63 | + * Returns the link sub type,OTS,OPS,PKT_OPTICAL or ODUK. |
| 64 | * | 64 | * |
| 65 | * @return link subType | 65 | * @return link subType |
| 66 | */ | 66 | */ |
| ... | @@ -68,21 +68,21 @@ public interface PcepLink extends PcepOperator { | ... | @@ -68,21 +68,21 @@ public interface PcepLink extends PcepOperator { |
| 68 | public SubType linkSubType(); | 68 | public SubType linkSubType(); |
| 69 | 69 | ||
| 70 | /** | 70 | /** |
| 71 | - * Get the link state, up or down. | 71 | + * Returns the link state, up or down. |
| 72 | * | 72 | * |
| 73 | * @return link state | 73 | * @return link state |
| 74 | */ | 74 | */ |
| 75 | public String linkState(); | 75 | public String linkState(); |
| 76 | 76 | ||
| 77 | /** | 77 | /** |
| 78 | - * Get the distance of a link. | 78 | + * Returns the distance of a link. |
| 79 | * | 79 | * |
| 80 | * @return distance | 80 | * @return distance |
| 81 | */ | 81 | */ |
| 82 | public int linkDistance(); | 82 | public int linkDistance(); |
| 83 | 83 | ||
| 84 | /** | 84 | /** |
| 85 | - * Get the capacity type of a link,1: WAVELENGTHNUM, 2:SLOTNUM, 3, | 85 | + * Returns the capacity type of a link,1: WAVELENGTHNUM, 2:SLOTNUM, 3, |
| 86 | * BANDWIDTH. | 86 | * BANDWIDTH. |
| 87 | * | 87 | * |
| 88 | * @return capacity type | 88 | * @return capacity type |
| ... | @@ -90,44 +90,42 @@ public interface PcepLink extends PcepOperator { | ... | @@ -90,44 +90,42 @@ public interface PcepLink extends PcepOperator { |
| 90 | public String linkCapacityType(); | 90 | public String linkCapacityType(); |
| 91 | 91 | ||
| 92 | /** | 92 | /** |
| 93 | - * Get the available capacity value ,such as available bandwidth. | 93 | + * Returns the available capacity value ,such as available bandwidth. |
| 94 | * | 94 | * |
| 95 | * @return availValue | 95 | * @return availValue |
| 96 | */ | 96 | */ |
| 97 | public int linkAvailValue(); | 97 | public int linkAvailValue(); |
| 98 | 98 | ||
| 99 | /** | 99 | /** |
| 100 | - * Get the max capacity value ,such as max bandwidth. | 100 | + * Returns the max capacity value ,such as max bandwidth. |
| 101 | * | 101 | * |
| 102 | * @return maxValue | 102 | * @return maxValue |
| 103 | */ | 103 | */ |
| 104 | public int linkMaxValue(); | 104 | public int linkMaxValue(); |
| 105 | 105 | ||
| 106 | /** | 106 | /** |
| 107 | - * Get the source device did of a link. | 107 | + * Returns the source device did of a link. |
| 108 | * | 108 | * |
| 109 | * @return source did | 109 | * @return source did |
| 110 | */ | 110 | */ |
| 111 | public PcepDpid linkSrcDeviceID(); | 111 | public PcepDpid linkSrcDeviceID(); |
| 112 | 112 | ||
| 113 | /** | 113 | /** |
| 114 | - * Get the destination device did of a link. | 114 | + * Returns the destination device did of a link. |
| 115 | * | 115 | * |
| 116 | * @return destination did | 116 | * @return destination did |
| 117 | */ | 117 | */ |
| 118 | public PcepDpid linkDstDeviceId(); | 118 | public PcepDpid linkDstDeviceId(); |
| 119 | 119 | ||
| 120 | /** | 120 | /** |
| 121 | - * Get the source port number of a link,the port consists of shelf id, sub | 121 | + * Returns the source port number of a link. |
| 122 | - * card id, board id, and port id of a Huawei Device. | ||
| 123 | * | 122 | * |
| 124 | * @return port number | 123 | * @return port number |
| 125 | */ | 124 | */ |
| 126 | public long linkSrcPort(); | 125 | public long linkSrcPort(); |
| 127 | 126 | ||
| 128 | /** | 127 | /** |
| 129 | - * Get the destination port number of a link,the port consists of shelf id, | 128 | + * Returns the destination port number of a link. |
| 130 | - * sub card id, board id, and port id of a Huawei Device. | ||
| 131 | * | 129 | * |
| 132 | * @return port number | 130 | * @return port number |
| 133 | */ | 131 | */ | ... | ... |
| ... | @@ -146,13 +146,6 @@ public class PcepTopologyProvider extends AbstractProvider | ... | @@ -146,13 +146,6 @@ public class PcepTopologyProvider extends AbstractProvider |
| 146 | return new DefaultPortDescription(portNo, enabled, extendedAttributes); | 146 | return new DefaultPortDescription(portNo, enabled, extendedAttributes); |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | - /** | ||
| 150 | - * Build link annotations from pcep link description.the annotations consist | ||
| 151 | - * of lots of property of Huawei device. | ||
| 152 | - * | ||
| 153 | - * @param linkDesc | ||
| 154 | - * @return | ||
| 155 | - */ | ||
| 156 | private DefaultAnnotations buildLinkAnnotations(PcepLink linkDesc) { | 149 | private DefaultAnnotations buildLinkAnnotations(PcepLink linkDesc) { |
| 157 | DefaultAnnotations extendedAttributes = DefaultAnnotations | 150 | DefaultAnnotations extendedAttributes = DefaultAnnotations |
| 158 | .builder() | 151 | .builder() |
| ... | @@ -169,10 +162,10 @@ public class PcepTopologyProvider extends AbstractProvider | ... | @@ -169,10 +162,10 @@ public class PcepTopologyProvider extends AbstractProvider |
| 169 | } | 162 | } |
| 170 | 163 | ||
| 171 | /** | 164 | /** |
| 172 | - * Build a LinkDescription from a PCEPLink. | 165 | + * Build a link description from a pcep link. |
| 173 | * | 166 | * |
| 174 | - * @param pceLink | 167 | + * @param pceLink pcep link |
| 175 | - * @return LinkDescription | 168 | + * @return LinkDescription onos link description |
| 176 | */ | 169 | */ |
| 177 | private LinkDescription buildLinkDescription(PcepLink pceLink) { | 170 | private LinkDescription buildLinkDescription(PcepLink pceLink) { |
| 178 | LinkDescription ld; | 171 | LinkDescription ld; | ... | ... |
-
Please register or login to post a comment