Package org.onosproject.net
Class AbstractElement
- java.lang.Object
-
- org.onosproject.net.AbstractAnnotated
-
- org.onosproject.net.AbstractModel
-
- org.onosproject.net.AbstractProjectableModel
-
- org.onosproject.net.AbstractElement
-
- All Implemented Interfaces:
Annotated
,Projectable
,Element
,Provided
- Direct Known Subclasses:
DefaultDevice
,DefaultHost
public abstract class AbstractElement extends AbstractProjectableModel implements Element
Base implementation of network elements, i.e. devices or hosts.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.onosproject.net.AbstractProjectableModel
AbstractProjectableModel.AnnotationDriverData
-
-
Field Summary
Fields Modifier and Type Field Description protected ElementId
id
-
Fields inherited from class org.onosproject.net.AbstractProjectableModel
NO_DRIVER, NO_DRIVER_SERVICE
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractElement()
protected
AbstractElement(ProviderId providerId, ElementId id, Annotations... annotations)
Creates a network element attributed to the specified provider.
-
Method Summary
-
Methods inherited from class org.onosproject.net.AbstractProjectableModel
as, asData, bindAndCheckDriver, bindDriver, driver, driverService, is, locateDriver, setDriverService
-
Methods inherited from class org.onosproject.net.AbstractModel
providerId
-
Methods inherited from class org.onosproject.net.AbstractAnnotated
annotations
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.onosproject.net.Annotated
annotations
-
Methods inherited from interface org.onosproject.net.driver.Projectable
as, is, project
-
Methods inherited from interface org.onosproject.net.Provided
providerId
-
-
-
-
Field Detail
-
id
protected final ElementId id
-
-
Constructor Detail
-
AbstractElement
public AbstractElement()
-
AbstractElement
protected AbstractElement(ProviderId providerId, ElementId id, Annotations... annotations)
Creates a network element attributed to the specified provider.- Parameters:
providerId
- identity of the providerid
- element identifierannotations
- optional key/value annotations
-
-