Class VariableReader

java.lang.Object
  |
  +--VariableReader

public class VariableReader
extends java.lang.Object

The VariableReader class is used to get the values of the flight sim variables from the flight simulator, convert them to JESS facts and export those facts to the JESS engine. Because the flight sim variables can only be accessed from a dll, such a dll has been created and is accessed by the VariableReader class through JNI. The native methods are defined in this class. The name of the dll is 'VariableReader.dll'. This dll calls another dll, 'F16C.gau' which is located in the Gauges directory of the MSFS2002 directory, to get the values from the flight simulator. After reading the variables from the dll they are displayed on the VariableWindow for debugging purposes.


Constructor Summary
VariableReader(VariableWindow varWindow, JESSCommunicator aJESSCommunicator)
           
 
Method Summary
protected  java.lang.String convertFSValueToXMLValue(java.lang.String variableName, java.lang.Object fsValue)
           
 void loadVariables()
          This method can be called to get the values of the flight sim variables from the flight simulator, convert them to JESS facts and export those facts to the JESS engine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableReader

public VariableReader(VariableWindow varWindow,
                      JESSCommunicator aJESSCommunicator)
Method Detail

loadVariables

public void loadVariables()
This method can be called to get the values of the flight sim variables from the flight simulator, convert them to JESS facts and export those facts to the JESS engine.


convertFSValueToXMLValue

protected java.lang.String convertFSValueToXMLValue(java.lang.String variableName,
                                                    java.lang.Object fsValue)