|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.proteinshader.structure.visitor.demos.VisitorDemo
public class VisitorDemo
For testing the traversal logic of the Visitor class.
Creates a Structure object by using the PDBStructureReader class and
then tests the ability of the Visitor to traverse all Visitable
objects and print each objects ID.
USAGE: java -cp . path/VisitorDemo filename
where path = edu/harvard/fas/jrweber/molecular/structure/visitor
Field Summary | |
---|---|
static String |
PATH
|
static String |
usageMessage
|
Constructor Summary | |
---|---|
VisitorDemo()
Constructs a VisitorDemo. |
Method Summary | |
---|---|
static void |
main(String[] args)
Uses a StructureReader to read a PDB file and create a Structure, and then tests the ability of a Visitor to traverse the Structure. |
void |
printBadLines(List<String> badLines)
Prints the bad lines from the PDB file. |
void |
testVisitor(Structure structure)
Creates a Visitor and tests it by activating debug mode so that it will print the ID of each object in the Structure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PATH
public static final String usageMessage
Constructor Detail |
---|
public VisitorDemo()
Method Detail |
---|
public void testVisitor(Structure structure) throws VisitorException
structure
- the Structure to test the Visitor on.
VisitorException
public void printBadLines(List<String> badLines)
badLines
- the bad lines to print.public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |