blob: 01341a5570491101a897a8c0ac34841bd8696651 [file] [log] [blame]
package org.onlab.onos.net;
import org.onlab.onos.net.provider.ProviderId;
/**
* Base implementation of network elements, i.e. devices or hosts.
*/
public class AbstractElement extends AbstractModel implements Element {
protected final ElementId id;
/**
* Creates a network element attributed to the specified provider.
*
* @param providerId identity of the provider
* @param id element identifier
*/
protected AbstractElement(ProviderId providerId, ElementId id) {
super(providerId);
this.id = id;
}
@Override
public ElementId id() {
return id;
}
}