ffe.parsers
Class SystemFilter

java.lang.Object
  extended byffe.parsers.SystemFilter
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
INTFilter, NEDFilter, PDBFilter, SocketFilter, XYZFilter

public abstract class SystemFilter
extends java.lang.Object
implements java.lang.Runnable

The SystemFilter class is the base class for most file parsers.


Field Summary
static byte ARC
           
protected  java.util.ArrayList atomList
          The atoms and bonds ArrayLists are filled by the filters that extend this base class.
protected  java.util.ArrayList bondList
           
protected  boolean file_read
           
protected  byte filetype
           
protected  MainPanel fpanel
           
protected  FSystem fsystem
           
static byte INT
           
protected  MMFilter mmfilter
           
static byte NED
           
static byte PDB
           
static byte SIM
           
protected  javax.swing.JLabel statusBar
           
static byte XYZ
           
 
Constructor Summary
SystemFilter()
           
SystemFilter(FSystem f, MainPanel m)
           
SystemFilter(FSystem f, MMFilter mm, MainPanel m)
           
 
Method Summary
 boolean FileRead()
          Returns true if the read was successful
 FSystem getFSystem()
          Return the FSystem that has been read in
 byte getType()
           
abstract  boolean readfile()
          This method is different for each subclass and must be overidden
 void run()
           
 void setFileRead(boolean b)
           
 void setFSystem(FSystem f)
           
 void setType(byte t)
           
static java.lang.String toFileString(byte filetype)
           
static java.io.File version(java.io.File file)
           
abstract  boolean writefile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fsystem

protected FSystem fsystem

atomList

protected java.util.ArrayList atomList
The atoms and bonds ArrayLists are filled by the filters that extend this base class.


bondList

protected java.util.ArrayList bondList

mmfilter

protected MMFilter mmfilter

file_read

protected boolean file_read

filetype

protected byte filetype

fpanel

protected MainPanel fpanel

statusBar

protected javax.swing.JLabel statusBar

XYZ

public static final byte XYZ
See Also:
Constant Field Values

INT

public static final byte INT
See Also:
Constant Field Values

ARC

public static final byte ARC
See Also:
Constant Field Values

PDB

public static final byte PDB
See Also:
Constant Field Values

SIM

public static final byte SIM
See Also:
Constant Field Values

NED

public static final byte NED
See Also:
Constant Field Values
Constructor Detail

SystemFilter

public SystemFilter()

SystemFilter

public SystemFilter(FSystem f,
                    MainPanel m)

SystemFilter

public SystemFilter(FSystem f,
                    MMFilter mm,
                    MainPanel m)
Method Detail

readfile

public abstract boolean readfile()
This method is different for each subclass and must be overidden


writefile

public abstract boolean writefile()

run

public void run()
Specified by:
run in interface java.lang.Runnable

getFSystem

public FSystem getFSystem()
Return the FSystem that has been read in


setFSystem

public void setFSystem(FSystem f)

FileRead

public boolean FileRead()
Returns true if the read was successful


setFileRead

public void setFileRead(boolean b)

setType

public void setType(byte t)

getType

public byte getType()

toFileString

public static java.lang.String toFileString(byte filetype)

version

public static java.io.File version(java.io.File file)