mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-25 06:04:59 +00:00
169 lines
5.5 KiB
Java
169 lines
5.5 KiB
Java
package ak;
|
|
|
|
import V.ExceptionInVPackage;
|
|
import V.VInterfaceFoxtrot;
|
|
import W.T;
|
|
import W.X;
|
|
import W.m;
|
|
import bH.D;
|
|
import bH.I;
|
|
import bH.X;
|
|
import java.io.IOException;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import java.util.StringTokenizer;
|
|
import java.util.logging.Level;
|
|
import java.util.logging.Logger;
|
|
|
|
public class AkInterfaceAh extends g {
|
|
float ExceptionInVPackage = -1.0F;
|
|
|
|
public AkInterfaceAh() {
|
|
super(",", false);
|
|
}
|
|
|
|
public Iterator b() {
|
|
while (this.g.isEmpty()) {
|
|
String str1 = null;
|
|
try {
|
|
str1 = l();
|
|
} catch (IOException iOException) {
|
|
iOException.printStackTrace();
|
|
throw new ExceptionInVPackage("IO Error reading header rows from file.");
|
|
} catch (ExceptionInVPackage ExceptionInVPackage) {
|
|
ExceptionInVPackage.printStackTrace();
|
|
throw new ExceptionInVPackage("No Valid Data found in file");
|
|
}
|
|
if (str1.startsWith("\"Elapsed Time\""))
|
|
str1 = X.b(str1, "\"", "");
|
|
byte b = 0;
|
|
if (!str1.startsWith("Data Filename:")) {
|
|
str1 = X.b(str1, r() + r(), r() + " " + r());
|
|
StringTokenizer stringTokenizer = new StringTokenizer(str1, r());
|
|
while (stringTokenizer.hasMoreTokens()) {
|
|
String str2 = stringTokenizer.nextToken().trim();
|
|
if (str2.startsWith("\""))
|
|
str2 = X.b(str2, "\"", "").trim();
|
|
if (str2.equals(" "))
|
|
str2 = "Col" + b;
|
|
if (str2.equalsIgnoreCase("lambda"))
|
|
str2 = "Lambda";
|
|
if (str2.contains("-"))
|
|
str2 = X.b(str2, "-", " ");
|
|
if (str2.contains(" "))
|
|
str2 = X.b(str2, " ", " ");
|
|
if (str2.equals("G(x)"))
|
|
str2 = "XForce(g)";
|
|
if (str2.equals("G(y)"))
|
|
str2 = "YForce(g)";
|
|
if (str2.equals("G(z)"))
|
|
str2 = "ZForce(g)";
|
|
d d = new d();
|
|
if (str2.equals("Device Time")) {
|
|
d.ExceptionInVPackage(3);
|
|
d.ExceptionInVPackage("Device Time");
|
|
d.b("s");
|
|
str2 = "Device Time";
|
|
}
|
|
try {
|
|
if (str2.lastIndexOf("(") > 1 && str2.contains(")")) {
|
|
int i = str2.lastIndexOf("(");
|
|
int j = str2.indexOf(")", i);
|
|
String str3 = str2.substring(i + 1, j).trim();
|
|
d.b(str3);
|
|
str2 = (str2.substring(0, i) + str2.substring(j + 1, str2.length())).trim();
|
|
}
|
|
str2 = X.b(str2, "(", " ");
|
|
str2 = X.b(str2, ")", " ");
|
|
} catch (Exception exception) {
|
|
D.c("Thought I could parse units, but it failed on field \"" + str2 + "\"");
|
|
}
|
|
str2 = str2.trim();
|
|
for (byte b1 = 0; b1 < 100 && i(str2); b1++)
|
|
str2 = str2 + b1;
|
|
d.ExceptionInVPackage(str2);
|
|
if (d.ExceptionInVPackage().contains("Latitude") || d.ExceptionInVPackage().contains("Longitude"))
|
|
d.ExceptionInVPackage(7);
|
|
this.g.add(d);
|
|
b++;
|
|
}
|
|
}
|
|
}
|
|
this.r = r() + r();
|
|
this.s = r() + " " + r();
|
|
String str = null;
|
|
try {
|
|
str = " " + l();
|
|
str = d(str);
|
|
str = d(str);
|
|
byte b = 0;
|
|
StringTokenizer stringTokenizer = new StringTokenizer(str, r());
|
|
while (stringTokenizer.hasMoreTokens()) {
|
|
String str1 = stringTokenizer.nextToken().trim();
|
|
if (b < this.g.size()) {
|
|
if (!I.ExceptionInVPackage(str1)) {
|
|
((d)this.g.get(b++)).b(str1);
|
|
continue;
|
|
}
|
|
ExceptionInVPackage(true);
|
|
break;
|
|
}
|
|
}
|
|
} catch (IOException iOException) {
|
|
Logger.getLogger(g.class.getName()).log(Level.SEVERE, (String)null, iOException);
|
|
} catch (VInterfaceFoxtrot VInterfaceFoxtrot) {
|
|
Logger.getLogger(g.class.getName()).log(Level.SEVERE, (String)null, (Throwable)VInterfaceFoxtrot);
|
|
} catch (Exception exception) {
|
|
D.ExceptionInVPackage("Failed to get units from this row:\n" + str);
|
|
Logger.getLogger(g.class.getName()).log(Level.SEVERE, (String)null, exception);
|
|
}
|
|
ArrayList<T> arrayList = new ArrayList();
|
|
Iterator<T> iterator = this.g.iterator();
|
|
while (iterator.hasNext())
|
|
arrayList.add(iterator.next());
|
|
return arrayList.iterator();
|
|
}
|
|
|
|
protected void e(String paramString) {
|
|
if (paramString.indexOf("Device Time") > -1)
|
|
throw new m("Log Restart");
|
|
super.e(paramString);
|
|
}
|
|
|
|
protected float g(String paramString) {
|
|
int i = 0;
|
|
int j = 0;
|
|
float VInterfaceFoxtrot = 0.0F;
|
|
try {
|
|
StringTokenizer stringTokenizer = new StringTokenizer(paramString, ":");
|
|
if (stringTokenizer.countTokens() > 2) {
|
|
String str = stringTokenizer.nextToken();
|
|
if ((str.contains("/") || str.contains("-")) && str.contains(" "))
|
|
str = str.substring(str.indexOf(" ") + 1);
|
|
i = Integer.parseInt(str);
|
|
}
|
|
j = Integer.parseInt(stringTokenizer.nextToken());
|
|
VInterfaceFoxtrot = Float.parseFloat(stringTokenizer.nextToken());
|
|
float f1 = (i * 3600 + j * 60) + VInterfaceFoxtrot;
|
|
if (this.ExceptionInVPackage < 0.0F)
|
|
this.ExceptionInVPackage = f1;
|
|
return f1 - this.ExceptionInVPackage;
|
|
} catch (Exception exception) {
|
|
return 0.0F;
|
|
}
|
|
}
|
|
|
|
protected int b(String paramString) {
|
|
return 0;
|
|
}
|
|
|
|
public String i() {
|
|
return X.p;
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/ak/aH.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |