Package org.onosproject.net
Class AbstractModel
- java.lang.Object
-
- org.onosproject.net.AbstractAnnotated
-
- org.onosproject.net.AbstractModel
-
- Direct Known Subclasses:
AbstractProjectableModel
,DefaultTopology
public abstract class AbstractModel extends AbstractAnnotated implements Provided
Base implementation of a network model entity.
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractModel()
protected
AbstractModel(ProviderId providerId, Annotations... annotations)
Creates a model entity attributed to the specified provider and optionally annotated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProviderId
providerId()
Returns the identifier of the provider which supplied the entity.-
Methods inherited from class org.onosproject.net.AbstractAnnotated
annotations
-
-
-
-
Constructor Detail
-
AbstractModel
public AbstractModel()
-
AbstractModel
protected AbstractModel(ProviderId providerId, Annotations... annotations)
Creates a model entity attributed to the specified provider and optionally annotated.- Parameters:
providerId
- identity of the providerannotations
- optional key/value annotations
-
-
Method Detail
-
providerId
public ProviderId providerId()
Description copied from interface:Provided
Returns the identifier of the provider which supplied the entity.- Specified by:
providerId
in interfaceProvided
- Returns:
- provider identification
-
-