
es.tid.emulator.node.topology.Handler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of network-emulator Show documentation
Show all versions of network-emulator Show documentation
Emulator of GMPLS-controlled transport Network
The newest version!
package es.tid.emulator.node.topology;
import java.net.Inet4Address;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Set;
import java.util.concurrent.LinkedBlockingQueue;
import org.jgrapht.graph.SimpleDirectedWeightedGraph;
import es.tid.netManager.emulated.LayerTypes;
import es.tid.ospf.ospfv2.OSPFv2LinkStateUpdatePacket;
import es.tid.ospf.ospfv2.lsa.LSA;
import es.tid.ospf.ospfv2.lsa.OSPFTEv2LSA;
import es.tid.ospf.ospfv2.lsa.tlv.LinkTLV;
import es.tid.ospf.ospfv2.lsa.tlv.subtlv.LinkID;
import es.tid.ospf.ospfv2.lsa.tlv.subtlv.LocalInterfaceIPAddress;
import es.tid.ospf.ospfv2.lsa.tlv.subtlv.RemoteInterfaceIPAddress;
import es.tid.tedb.DomainTEDB;
import es.tid.tedb.IntraDomainEdge;
import es.tid.tedb.MultiLayerTEDB;
/**
* Class which reads a topology network from an XML file, and sends it by OSPF.
* @author mcs
*
*/
public class Handler {
//La topologia TEDB
DomainTEDB ted;
/**
* Metodo que lee la topologia de un XML file
*/
DomainTEDB XMLRead(String file){
ted = new MultiLayerTEDB();
if (file !=null){
ted.initializeFromFile(file);
}
return ted;
}
/**
* Metodo que envia por OSPF la topologia.
* @param sendingQueue Cola de env�o de mensajes OSPF
*/
void sendTopology(LinkedBlockingQueue sendingQueue){
int layer;
//UPPER_LAYER
SimpleDirectedWeightedGraph
© 2015 - 2025 Weber Informatics LLC | Privacy Policy