urv.emulator.topology.parser
Class PajekParserImpl

java.lang.Object
  extended by urv.emulator.topology.parser.PajekParserImpl
All Implemented Interfaces:
Parser

public class PajekParserImpl
extends java.lang.Object
implements Parser

This class retrieves the topology information stored in a Pajek file

Author:
Marcel Arrufat

Constructor Summary
PajekParserImpl()
           
 
Method Summary
 GraphInformation loadNetwork(java.lang.String file)
          This method must load network file and create a new NetworkGraph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PajekParserImpl

public PajekParserImpl()
Method Detail

loadNetwork

public GraphInformation loadNetwork(java.lang.String file)
Description copied from interface: Parser
This method must load network file and create a new NetworkGraph. NetworkGraph must contain node and edges information (both stored in LinkedList). This information can be stored by using addNode and addEdge methods

Specified by:
loadNetwork in interface Parser
Parameters:
file - local file from which NetworkGraph will be load
Returns: