pfc.bin.engine
Class PascalFC

java.lang.Object
  |
  +--pfc.bin.engine.PascalFC

public class PascalFC
extends java.lang.Object

The facade class for the PFCI system


Constructor Summary
PascalFC()
           
 
Method Summary
 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 loadedFile)
           
 java.lang.String getPmdFilePath(java.io.File loadedFile)
           
 boolean isEndOfFile()
          A method to check if the running pfc file has completed execution
static void main(java.lang.String[] args)
           
 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

PascalFC

public PascalFC()
Method Detail

main

public static void main(java.lang.String[] args)

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

isEndOfFile

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

getChar

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

stopExecution

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

getListFilePath

public java.lang.String getListFilePath(java.io.File loadedFile)

getPmdFilePath

public java.lang.String getPmdFilePath(java.io.File loadedFile)