blob: e195fde5d79c8ca32c53ebef8910aaab30707a4f [file] [log] [blame]
tom3065d122014-09-03 21:56:43 -07001package org.onlab.onos.net;
2
3import org.onlab.onos.net.provider.ProviderId;
4
5/**
6 * Base implementation of a network model entity.
7 */
8public class AbstractModel implements Provided {
9
10 private final ProviderId providerId;
11
12 /**
13 * Creates a model entity attributed to the specified provider.
14 *
15 * @param providerId identity of the provider
16 */
17 protected AbstractModel(ProviderId providerId) {
18 this.providerId = providerId;
19 }
20
21 @Override
22 public ProviderId providerId() {
23 return providerId;
24 }
25
26}