git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@723 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
Tgui 2007-07-05 02:18:10 +00:00
parent a4a36546a8
commit 5865c397e1
1 changed files with 13 additions and 1 deletions

View File

@ -27,11 +27,13 @@ public class UtecDataManager {
private static int afrIndex = Integer.parseInt(UtecProperties.getProperties("utec.afrIndex")[0]);
private static int psiIndex = Integer.parseInt(UtecProperties.getProperties("utec.psiIndex")[0]);
private static int knockIndex = Integer.parseInt(UtecProperties.getProperties("utec.knockIndex")[0]);
private static int loadIndex = Integer.parseInt(UtecProperties.getProperties("utec.loadIndex")[0]);
// Set data values to initial state
private static double afrData = 999.0;
private static double psiData = 999.0;
private static double knockData = 0.0;
private static double loadData = 0.0;
private static int lineCounter = 0;
@ -192,6 +194,7 @@ public class UtecDataManager {
setAfrData(doubleData[afrIndex]);
setPsiData(doubleData[psiIndex]);
setKnockData(doubleData[knockIndex]);
setLoadData(doubleData[loadIndex]);
Iterator iterator = UtecDataManager.getLoggerListeners().iterator();
while(iterator.hasNext()){
@ -272,10 +275,19 @@ public class UtecDataManager {
if(knockData > UtecDataManager.knockData){
UtecDataManager.knockData = knockData;
}
}
public static double getLoadData() {
return loadData;
}
public static void setLoadData(double loadData) {
UtecDataManager.loadData = loadData;
}
public static double getPsiData() {
return psiData;
}