pfc.bin.console
Class Console

java.lang.Object
  |
  +--pfc.bin.console.Console

public class Console
extends java.lang.Object

The "heart" of the PFCI system providing all interaction with the operating system


Constructor Summary
Console()
           
 
Method Summary
 boolean anotherInstance()
          Checks if another instance of the PFCI system is running, it is also platform depended
 void executeFile(java.io.File f, java.lang.String mode)
          It submits the specified file for execution
 char getChar()
          Returns the next character of running files output
 java.lang.String getListFilePath(java.io.File f)
          Returns the path of the list file path created for the currently loaded file.
 java.lang.String getPmdFilePath(java.io.File f)
          Returns the path of the pmd file path created for the currently loaded file.
 boolean isEndOfFile()
          A method to check if the running pfc file has completed execution
 boolean setEnv()
          It sets up the environment for the Windows2000 platforms by writing a setenv.bat file with the proper setting of the environmnental variables for the interpreter to run
 void stopExecution()
          Stops the currenly running file
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Console

public Console()
Method Detail

anotherInstance

public boolean anotherInstance()
Checks if another instance of the PFCI system is running, it is also platform depended
Returns:
true if another instance is running

setEnv

public boolean setEnv()
It sets up the environment for the Windows2000 platforms by writing a setenv.bat file with the proper setting of the environmnental variables for the interpreter to run

getListFilePath

public java.lang.String getListFilePath(java.io.File f)
Returns the path of the list file path created for the currently loaded file. If the file does not exist then it returns an empty string.
Returns:
The list file's absolute path or the empty string ("") if the file does not exist.

getPmdFilePath

public java.lang.String getPmdFilePath(java.io.File f)
Returns the path of the pmd file path created for the currently loaded file. If the file does not exist then it returns an empty string.
Returns:
The pmd file's absolute path or the empty string ("") if the file does not exist.

getChar

public char getChar()
Returns the next character of running files output
Returns:
a char

executeFile

public void executeFile(java.io.File f,
                        java.lang.String mode)
It submits the specified file for execution
Parameters:
f - the pfc file currently loaded
mode - the mode of execution either "-f" for a "fair" execution or "-uf" for "unfair" execution

stopExecution

public void stopExecution()
Stops the currenly running file
Returns:
a char

isEndOfFile

public boolean isEndOfFile()
A method to check if the running pfc file has completed execution