Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
tom
2014-08-27 14:42:43 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
43387f38d221cacf7f2794dccdd327be3d3712a5
43387f38
1 parent
de8d9684
Adding model abstractions to help flesh-out the concepts.
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
95 additions
and
2 deletions
net/api/src/main/java/org/onlab/onos/net/HostLinks.java
net/api/src/main/java/org/onlab/onos/net/HostLocation.java
net/api/src/main/java/org/onlab/onos/net/Link.java
net/api/src/main/java/org/onlab/onos/net/Path.java
net/api/src/main/java/org/onlab/onos/net/Topology.java
net/api/src/main/java/org/onlab/onos/net/HostLinks.java
0 → 100644
View file @
43387f3
package
org
.
onlab
.
onos
.
net
;
/**
* Abstraction of a link between an end-station host and the network
* infrastructure.
*/
public
interface
HostLinks
extends
Link
{
/**
* Returns the host identification.
*
* @return host identifier
*/
ElementId
hostId
();
/**
* Returns the connection point where the host attaches to the
* network infrastructure.
*
* @return host connection point
*/
ConnectPoint
connectPoint
();
}
net/api/src/main/java/org/onlab/onos/net/HostLocation.java
View file @
43387f3
...
...
@@ -12,6 +12,6 @@ public interface HostLocation extends ConnectPoint {
*
* @return timestamp in milliseconds since start of epoch
*/
long
time
stamp
();
long
time
();
}
...
...
net/api/src/main/java/org/onlab/onos/net/Link.java
View file @
43387f3
...
...
@@ -5,7 +5,8 @@ import org.onlab.onos.net.provider.Provided;
/**
* Abstraction of a network infrastructure link.
*/
public
interface
Link
extends
Provided
{
// TODO: Also should extend graph Edge once the graph module is checked in
public
interface
Link
extends
Provided
{
// TODO: Consider extending graph Edge<Element> once the graph module is available
/**
* Coarse representation of the link type.
...
...
net/api/src/main/java/org/onlab/onos/net/Path.java
0 → 100644
View file @
43387f3
package
org
.
onlab
.
onos
.
net
;
import
java.util.List
;
/**
* Representation of a contiguous directed path in a network. Path comprises
* of a sequence of links, where adjacent links must share the same device,
* meaning that destination of the source of one link must coincide with the
* destination of the previous link.
*/
public
interface
Path
extends
Link
{
/**
* Returns sequence of links comprising the path.
*
* @return list of links
*/
List
<
Link
>
links
();
}
net/api/src/main/java/org/onlab/onos/net/Topology.java
0 → 100644
View file @
43387f3
package
org
.
onlab
.
onos
.
net
;
/**
* Represents a network topology computation snapshot.
*/
public
interface
Topology
{
/**
* Returns the time, specified in milliseconds since start of epoch,
* when the topology became active and made available.
*
* @return time in milliseconds since start of epoch
*/
long
time
();
/**
* Returns the number of SCCs (strongly connected components) in the
* topology.
*
* @return number of clusters
*/
int
clusterCount
();
/**
* Returns the number of infrastructure devices in the topology.
*
* @return number of devices
*/
int
deviceCount
();
/**
* Returns the number of infrastructure links in the topology.
*
* @return number of links
*/
int
linkCount
();
/**
* Returns the number of infrastructure paths computed between devices
* in the topology. This means the number of all the shortest paths
* (hop-count) between all device pairs.
*
* @return number of paths
*/
int
pathCount
();
}
Please
register
or
login
to post a comment