edu.ucla.belief.io
Class FileType

Object
  extended by FileType

public class FileType
extends Object

represents a type of Bayesian network file, e.g. .net, .dsl, etc

Since:
20030515
Author:
keith cascio

Field Summary
static FileType DSL
           
static FileType ERGO
           
static FileType HUGIN
           
static FileType HUGIN57
           
static FileType INTERCHANGE
           
static FileType NETICA
           
static FileType XDSL
           
static FileType XMLBIF_INFLIB
           
static FileType XMLBIF_SMILE
           
 
Method Summary
 File appendExtension(File selectedFile)
           
 boolean broadens(FileType type)
          a.k.a.: generalizes()
 boolean distinguishes(FileType type)
          alias of narrows()
 boolean generalizes(FileType type)
          alias of broadens()
static FileType[] getArrayCanonical()
           
static FileType[] getArraySMILE()
           
 FileFilter getFileFilter()
           
 int getGenieConstant()
           
 String getName()
           
static FileFilter getPanFilter()
           
static FileType getTypeForFile(File dummyFile)
           
static FileType getTypeForFilter(FileFilter filter)
           
 String getURL()
           
 boolean isHuginType()
           
 boolean isReadable()
           
 boolean isSMILEType()
           
 boolean isWritableFrom(FileType type)
           
static int javaSpecificationVersion()
           
static void load(JFileChooser chooser)
           
static void loadForSaveAs(JFileChooser chooser, File oldFile)
           
 boolean narrows(FileType type)
          a.k.a.: distinguishes()
 Thread openFile(File input, NetworkIO.BeliefNetworkIOListener listener)
           
 boolean save(File output, BeliefNetwork bn)
           
 String toString()
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERGO

public static final FileType ERGO

NETICA

public static final FileType NETICA

INTERCHANGE

public static final FileType INTERCHANGE

DSL

public static final FileType DSL

HUGIN

public static final FileType HUGIN

HUGIN57

public static final FileType HUGIN57

XMLBIF_SMILE

public static final FileType XMLBIF_SMILE

XDSL

public static final FileType XDSL

XMLBIF_INFLIB

public static final FileType XMLBIF_INFLIB
Since:
20060524
Method Detail

getFileFilter

public FileFilter getFileFilter()

getName

public String getName()

getGenieConstant

public int getGenieConstant()

isSMILEType

public boolean isSMILEType()

isHuginType

public boolean isHuginType()

isReadable

public boolean isReadable()

isWritableFrom

public boolean isWritableFrom(FileType type)

narrows

public boolean narrows(FileType type)
a.k.a.: distinguishes()

Returns:
true if this type is equivalent to the argument type or a subtype of it
Since:
20070228

distinguishes

public final boolean distinguishes(FileType type)
alias of narrows()

Since:
20070228

broadens

public boolean broadens(FileType type)
a.k.a.: generalizes()

Returns:
true if this type is equivalent to the argument type or a supertype of it
Since:
20070228

generalizes

public final boolean generalizes(FileType type)
alias of broadens()

Since:
20070228

toString

public String toString()
Overrides:
toString in class Object

getURL

public String getURL()
Since:
20060525

openFile

public Thread openFile(File input,
                       NetworkIO.BeliefNetworkIOListener listener)
Since:
20060524

save

public boolean save(File output,
                    BeliefNetwork bn)
             throws Exception
Throws:
Exception
Since:
20060525

appendExtension

public File appendExtension(File selectedFile)

javaSpecificationVersion

public static int javaSpecificationVersion()
Since:
20060524

getArrayCanonical

public static FileType[] getArrayCanonical()
Since:
20040203

getArraySMILE

public static FileType[] getArraySMILE()
Since:
20040203

getPanFilter

public static final FileFilter getPanFilter()

getTypeForFile

public static final FileType getTypeForFile(File dummyFile)

getTypeForFilter

public static final FileType getTypeForFilter(FileFilter filter)

load

public static final void load(JFileChooser chooser)

loadForSaveAs

public static final void loadForSaveAs(JFileChooser chooser,
                                       File oldFile)
See Also:
narrows(edu.ucla.belief.io.FileType), distinguishes(edu.ucla.belief.io.FileType)


Copyright 2010 UCLA Automated Reasoning Group