Class DialogStatistics

java.lang.Object
  |
  +--DialogStatistics

public class DialogStatistics
extends java.lang.Object
implements java.lang.Runnable

this class computes statistics concerning different liguistic criteria


Field Summary
(package private)  float bad
           
(package private)  float baddel
           
(package private)  float badins
           
(package private)  float badtrans
           
(package private)  float checkedturns
           
(package private)  float checkedturnsdel
           
(package private)  float checkedturnsins
           
(package private)  float checkedturnstrans
           
(package private)  java.lang.String column_aux
           
(package private)  java.lang.String[] columnNames
           
(package private)  java.lang.String[][] data
           
(package private)  java.lang.String[] data_aux
           
(package private)  java.lang.String[] data1
           
(package private)  float dialfull
           
(package private)  float dialno
           
(package private)  javax.swing.JDialog dialog
           
(package private)  float dialpar
           
(package private)  float good
           
(package private)  float gooddel
           
(package private)  float goodins
           
(package private)  float goodtrans
           
(package private)  float intermediate
           
(package private)  float intermediatedel
           
(package private)  float intermediateins
           
(package private)  float intermediatetrans
           
(package private)  boolean isShown
           
(package private)  javax.swing.JFrame mainframe
           
(package private)  float mismatch
           
(package private)  float miss
           
(package private)  javax.swing.table.DefaultTableModel myModel
           
(package private)  float no_mismatch
           
(package private)  float sem
           
(package private)  float syn
           
(package private)  float turns
           
(package private)  UserInterface ui
           
 
Constructor Summary
DialogStatistics(javax.swing.JFrame mainframe, UserInterface ui)
          builts the window and adds the components
 
Method Summary
 void Calculate()
          computes the statistics
 void Changed()
          updates the view of the table, according to the new computed values
private  boolean CheckConstraints(Judgements j)
          checks if there are constraints for statistics in the Patatrens window
private  boolean CheckIE()
           
private  void GetTurn(Judgements j)
          get data from the turns
 void HideDialog()
          dismiss the window
private  void init()
          initalize values
private  void initScreen()
          initialize values
private  boolean PartialDialogAct()
           
 void run()
          performs the computations in a thread
 void ShowDialog()
          pops-up the window,starts a thread for the computation, and when it is finished updates the view of the table
 void UpdateDialog()
          update the computations according to changes performed by the user in the panels in the user interface
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

turns

float turns

checkedturns

float checkedturns

good

float good

intermediate

float intermediate

bad

float bad

mismatch

float mismatch

no_mismatch

float no_mismatch

syn

float syn

sem

float sem

miss

float miss

dialfull

float dialfull

dialpar

float dialpar

dialno

float dialno

checkedturnstrans

float checkedturnstrans

checkedturnsins

float checkedturnsins

checkedturnsdel

float checkedturnsdel

goodtrans

float goodtrans

intermediatetrans

float intermediatetrans

badtrans

float badtrans

gooddel

float gooddel

intermediatedel

float intermediatedel

baddel

float baddel

goodins

float goodins

intermediateins

float intermediateins

badins

float badins

data1

java.lang.String[] data1

isShown

boolean isShown

dialog

javax.swing.JDialog dialog

ui

UserInterface ui

mainframe

javax.swing.JFrame mainframe

myModel

javax.swing.table.DefaultTableModel myModel

columnNames

final java.lang.String[] columnNames

data

final java.lang.String[][] data

column_aux

final java.lang.String column_aux

data_aux

final java.lang.String[] data_aux
Constructor Detail

DialogStatistics

public DialogStatistics(javax.swing.JFrame mainframe,
                        UserInterface ui)
builts the window and adds the components
Method Detail

ShowDialog

public void ShowDialog()
pops-up the window,starts a thread for the computation, and when it is finished updates the view of the table
See Also:
Changed()

UpdateDialog

public void UpdateDialog()
update the computations according to changes performed by the user in the panels in the user interface
See Also:
Changed()

run

public void run()
performs the computations in a thread
Specified by:
run in interface java.lang.Runnable

HideDialog

public void HideDialog()
dismiss the window

Changed

public void Changed()
updates the view of the table, according to the new computed values

init

private void init()
initalize values

initScreen

private void initScreen()
initialize values

GetTurn

private void GetTurn(Judgements j)
get data from the turns
Parameters:
j - the current turn

CheckConstraints

private boolean CheckConstraints(Judgements j)
checks if there are constraints for statistics in the Patatrens window
Parameters:
j - the current turn

Calculate

public void Calculate()
computes the statistics

PartialDialogAct

private boolean PartialDialogAct()

CheckIE

private boolean CheckIE()