本文整理了Java中org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology.getTopologyTypes()
方法的一些代码示例,展示了Topology.getTopologyTypes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Topology.getTopologyTypes()
方法的具体详情如下:
包路径:org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology
类名称:Topology
方法名:getTopologyTypes
[英]This container is used to identify the type, or types(as a topology can support several types simultaneously),of the topology.Topology types are the subject of several integrity constraintsthat an implementing server can validate in order tomaintain integrity of the datastore.Topology types are indicated through separate data nodes;the set of topology types is expected to increase over time.To add support for a new topology, an augmenting moduleneeds to augment this container with a new empty optionalcontainer to indicate the new topology type.The use of a container allows to indicate a subcategorizationof topology types.The container SHALL NOT be augmented with any data nodesthat serve a purpose other than identifying a particulartopology type.
[中]此容器用于标识拓扑的类型(因为一个拓扑可以同时支持多个类型)。拓扑类型是几个完整性约束的主题,实现服务器可以验证这些约束,以保持数据存储的完整性。拓扑类型通过单独的数据节点表示;随着时间的推移,拓扑类型集预计会增加。要添加对新拓扑的支持,增强模块需要使用新的空optionalcontainer来增强此容器,以指示新的拓扑类型。使用容器可以指示拓扑类型的子类别。容器中不得添加任何数据节点,这些数据节点的作用仅限于识别特定的策略类型。
代码示例来源:origin: org.opendaylight.bgpcep/bgp-topology-provider
@Override
public final boolean topologyTypeFilter(final Topology topology) {
final TopologyTypes topologyTypes = topology.getTopologyTypes();
if (topologyTypes == null) {
return false;
}
final TopologyTypes1 aug = topologyTypes.getAugmentation(TopologyTypes1.class);
return aug != null && topologyTypeFilter(aug);
}
代码示例来源:origin: org.opendaylight.mdsal.model/ietf-topology
return false;
if (!Objects.equals(_topologyTypes, other.getTopologyTypes())) {
return false;
代码示例来源:origin: org.opendaylight.mdsal.model/ietf-topology
public TopologyBuilder(Topology base) {
this.key = base.key();
this._topologyId = base.getTopologyId();
this._link = base.getLink();
this._node = base.getNode();
this._topologyTypes = base.getTopologyTypes();
this._underlayTopology = base.getUnderlayTopology();
this._serverProvided = base.isServerProvided();
if (base instanceof TopologyImpl) {
TopologyImpl impl = (TopologyImpl) base;
if (!impl.augmentation.isEmpty()) {
this.augmentation = new HashMap<>(impl.augmentation);
}
} else if (base instanceof AugmentationHolder) {
@SuppressWarnings("unchecked")
Map<Class<? extends Augmentation<Topology>>, Augmentation<Topology>> aug =((AugmentationHolder<Topology>) base).augmentations();
if (!aug.isEmpty()) {
this.augmentation = new HashMap<>(aug);
}
}
}
代码示例来源:origin: org.opendaylight.yangtools.model/ietf-topology
public TopologyBuilder(Topology base) {
if (base.getKey() == null) {
this._key = new TopologyKey(
base.getTopologyId()
);
this._topologyId = base.getTopologyId();
} else {
this._key = base.getKey();
this._topologyId = _key.getTopologyId();
}
this._link = base.getLink();
this._node = base.getNode();
this._topologyTypes = base.getTopologyTypes();
this._underlayTopology = base.getUnderlayTopology();
this._serverProvided = base.isServerProvided();
if (base instanceof TopologyImpl) {
TopologyImpl impl = (TopologyImpl) base;
if (!impl.augmentation.isEmpty()) {
this.augmentation = new HashMap<>(impl.augmentation);
}
} else if (base instanceof AugmentationHolder) {
@SuppressWarnings("unchecked")
AugmentationHolder<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology>) base;
if (!casted.augmentations().isEmpty()) {
this.augmentation = new HashMap<>(casted.augmentations());
}
}
}
代码示例来源:origin: org.opendaylight.yangtools.model/ietf-topology
if (other.getTopologyTypes() != null) {
return false;
} else if(!_topologyTypes.equals(other.getTopologyTypes())) {
return false;
内容来源于网络,如有侵权,请联系作者删除!