xbneditor
Class XBN

java.lang.Object
  |
  +--xbneditor.XBN

public class XBN
extends java.lang.Object

The main GUI, this class contains all of the GUI features. It calls all of the functions that will end up manipulation the nodes and their relations to each other. The entire GUI is divided into three sections: the toolbars, the editarea, and the graphical area. The GUI can also be used to run several BNJ modules, including LS, K2, BBN Converter, and Stochastic Sampling.


Field Summary
 javax.swing.JCheckBoxMenuItem bif
           
 GraphicalPanel draw
           
 javax.swing.JCheckBoxMenuItem dsl
           
static EditNode editnode
           
 FileIO fileio
           
 java.lang.String filename
           
 java.lang.String format
           
 javax.swing.JCheckBoxMenuItem xml
           
 
Constructor Summary
XBN()
          Creates a new instance of the GUI and shows it to the user. This is also responsible for placing all of the widgets into the starting layout.
 
Method Summary
 void addundo()
          Puts a copy of the Network onto the undo Vector so that it can be undone if the user so chooses.
 void deleteDialog(ChanceBlock block)
          Make a dialog appear for this particular node asking which state needs to be deleted.
 void redrawEditNodeArea(Item tmp, int choice, boolean check)
          Creates and draws the edit area corresponding to a particular node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xml

public javax.swing.JCheckBoxMenuItem xml

bif

public javax.swing.JCheckBoxMenuItem bif

dsl

public javax.swing.JCheckBoxMenuItem dsl

editnode

public static EditNode editnode

draw

public GraphicalPanel draw

fileio

public FileIO fileio

filename

public java.lang.String filename

format

public java.lang.String format
Constructor Detail

XBN

public XBN()
Creates a new instance of the GUI and shows it to the user. This is also responsible for placing all of the widgets into the starting layout.
Method Detail

addundo

public void addundo()
Puts a copy of the Network onto the undo Vector so that it can be undone if the user so chooses.

redrawEditNodeArea

public void redrawEditNodeArea(Item tmp,
                               int choice,
                               boolean check)
Creates and draws the edit area corresponding to a particular node.
Parameters:
choice - 0 = delete state 1 = add state

deleteDialog

public void deleteDialog(ChanceBlock block)
Make a dialog appear for this particular node asking which state needs to be deleted.
Parameters:
block - - the nature node that is having a state removed