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-09-19 15:27:40 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c649132a6a21206e3362547ef76153204c62baee
c649132a
1 parent
eaf9995d
Added private default constructors for serialization.
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
core/api/src/main/java/org/onlab/onos/net/AbstractElement.java
core/api/src/main/java/org/onlab/onos/net/AbstractModel.java
core/api/src/main/java/org/onlab/onos/net/DefaultDevice.java
core/api/src/main/java/org/onlab/onos/net/AbstractElement.java
View file @
c649132
...
...
@@ -9,6 +9,11 @@ public class AbstractElement extends AbstractModel implements Element {
protected
final
ElementId
id
;
// For serialization
public
AbstractElement
()
{
id
=
null
;
}
/**
* Creates a network element attributed to the specified provider.
*
...
...
core/api/src/main/java/org/onlab/onos/net/AbstractModel.java
View file @
c649132
...
...
@@ -9,6 +9,11 @@ public class AbstractModel implements Provided {
private
final
ProviderId
providerId
;
// For serialization
public
AbstractModel
()
{
providerId
=
null
;
}
/**
* Creates a model entity attributed to the specified provider.
*
...
...
core/api/src/main/java/org/onlab/onos/net/DefaultDevice.java
View file @
c649132
...
...
@@ -17,6 +17,15 @@ public class DefaultDevice extends AbstractElement implements Device {
private
final
String
hwVersion
;
private
final
String
swVersion
;
// For serialization
private
DefaultDevice
()
{
this
.
type
=
null
;
this
.
manufacturer
=
null
;
this
.
hwVersion
=
null
;
this
.
swVersion
=
null
;
this
.
serialNumber
=
null
;
}
/**
* Creates a network element attributed to the specified provider.
*
...
...
Please
register
or
login
to post a comment