Class ASDump
java.lang.Object
|
+--ASDump
- public class ASDump
- extends java.lang.Object
ASDump.java
Jim Gast, jgast@cs.wisc.edu.
This program reads the ASTree.txt file containing the
clusters of Autonomous Systems. See MakeASTree.java for
more information about that file.
An ASDump reads lines of ASTree.txt until EOF.
The ASTree file is expected to have:
- # Lines that start with "#" are comments
- AS Lines that start with AS represent an autonomous system
Each AS line contains:
- ASnnnnn - The AS number
- hops hh - integer, hops to the backbone
- ances aaaaa - integer, AS number of the parent of this AS
AS lines can contain other fields that are not needed.
Constructor Summary |
ASDump()
|
ASDump(java.lang.String fileName)
|
Method Summary |
void |
close()
|
java.lang.String |
getFileName()
|
ASN[] |
loadASTree()
|
static void |
main(java.lang.String[] args)
main method is used for testing the class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_FILE
public static final java.lang.String DEFAULT_FILE
- See Also:
- Constant Field Values
ASDump
public ASDump(java.lang.String fileName)
ASDump
public ASDump()
loadASTree
public ASN[] loadASTree()
throws java.io.IOException
java.io.IOException
close
public void close()
getFileName
public java.lang.String getFileName()
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- main method is used for testing the class
java.io.IOException