public LinkDiscoveredBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link arg) { this._source = arg.getSource(); this._destination = arg.getDestination(); }
public LinkOverutilizedBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link arg) { this._source = arg.getSource(); this._destination = arg.getDestination(); }
public LinkUtilizationNormalBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link arg) { this._source = arg.getSource(); this._destination = arg.getDestination(); }
public LinkRemovedBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link arg) { this._source = arg.getSource(); this._destination = arg.getDestination(); }
/** *Set fields from given grouping argument. Valid argument is instance of one of following types: * <ul> * <li>org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link</li> * </ul> * * @param arg grouping object * @throws IllegalArgumentException if given argument is none of valid types */ public void fieldsFrom(DataObject arg) { boolean isValidArg = false; if (arg instanceof org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link) { this._source = ((org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link)arg).getSource(); this._destination = ((org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link)arg).getDestination(); isValidArg = true; } if (!isValidArg) { throw new IllegalArgumentException( "expected one of: [org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link] \n" + "but was: " + arg ); } }
/** *Set fields from given grouping argument. Valid argument is instance of one of following types: * <ul> * <li>org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link</li> * </ul> * * @param arg grouping object * @throws IllegalArgumentException if given argument is none of valid types */ public void fieldsFrom(DataObject arg) { boolean isValidArg = false; if (arg instanceof org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link) { this._source = ((org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link)arg).getSource(); this._destination = ((org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link)arg).getDestination(); isValidArg = true; } if (!isValidArg) { throw new IllegalArgumentException( "expected one of: [org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link] \n" + "but was: " + arg ); } }
/** *Set fields from given grouping argument. Valid argument is instance of one of following types: * <ul> * <li>org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link</li> * </ul> * * @param arg grouping object * @throws IllegalArgumentException if given argument is none of valid types */ public void fieldsFrom(DataObject arg) { boolean isValidArg = false; if (arg instanceof org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link) { this._source = ((org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link)arg).getSource(); this._destination = ((org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link)arg).getDestination(); isValidArg = true; } if (!isValidArg) { throw new IllegalArgumentException( "expected one of: [org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link] \n" + "but was: " + arg ); } }
/** *Set fields from given grouping argument. Valid argument is instance of one of following types: * <ul> * <li>org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link</li> * </ul> * * @param arg grouping object * @throws IllegalArgumentException if given argument is none of valid types */ public void fieldsFrom(DataObject arg) { boolean isValidArg = false; if (arg instanceof org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link) { this._source = ((org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link)arg).getSource(); this._destination = ((org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link)arg).getDestination(); isValidArg = true; } if (!isValidArg) { throw new IllegalArgumentException( "expected one of: [org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link] \n" + "but was: " + arg ); } }
public Edge toADEdge(final Link link) throws ConstructionException { NodeConnectorRef _source = link.getSource(); NodeConnector _aDNodeConnector = NodeMapping.toADNodeConnector(_source); NodeConnectorRef _destination = link.getDestination(); NodeConnector _aDNodeConnector_1 = NodeMapping.toADNodeConnector(_destination); Edge _edge = new Edge(_aDNodeConnector, _aDNodeConnector_1); return _edge; }
public static Link toTopologyLink( final org.opendaylight.yang.gen.v1.urn.opendaylight.flow.topology.discovery.rev130819.Link link) { return new LinkBuilder() .setSource(new SourceBuilder() .setSourceNode(toTopologyNodeId(link.getSource())) .setSourceTp(toTerminationPointId(link.getSource())) .build()) .setDestination(new DestinationBuilder() .setDestNode(toTopologyNodeId(link.getDestination())) .setDestTp(toTerminationPointId(link.getDestination())) .build()) .setLinkId(new LinkId(getNodeConnectorKey(link.getSource()).getId())) .build(); } }