Files
tustu/app/L/ChannelTranslateByOffset.java
2026-01-11 20:30:56 +00:00

84 lines
2.0 KiB
Java

package L;
import G.R;
import G.T;
import G.SerializableImpl;
import G.GInterfaceAi;
import ax.CloneableImplInAxPackage;
import ax.ExceptionInAxPackage;
import ax.AxInterfaceAb;
import ax.AbstractInAxPackage;
import java.util.Iterator;
public class ChannelTranslateByOffset extends AbstractInAxPackage {
GInterfaceAi a;
AxInterfaceAb b;
int c = -1;
AxInterfaceAb d = null;
int e = -1;
SerializableImpl f = null;
double g = Double.NaN;
public x(AxInterfaceAb paramab1, AxInterfaceAb paramab2) {
this.d = paramab1;
this.b = paramab2;
}
public x(GInterfaceAi paramaI, AxInterfaceAb paramab) {
this.a = paramaI;
this.b = paramab;
}
public double a(CloneableImplInAxPackage paramS) {
double d = (this.d != null) ? this.d.b(paramS) : -1.0D;
if (this.d != null && this.e != d) {
String[] arrayOfString = T.a().d();
for (String str : arrayOfString) {
R r = T.a().c(str);
if (r.O().x() == d) {
this.a = (GInterfaceAi)r;
this.e = (int)d;
break;
}
}
this.c = -1;
}
if (this.a == null)
return Double.NaN;
int i = (int)this.b.b(paramS);
if (this.c == -1 || i != this.c || this.f == null) {
Iterator<SerializableImpl> iterator = this.a.K().q();
while (iterator.hasNext()) {
SerializableImpl aH1 = iterator.next();
if (aH1.b().equals("scalar") && aH1.a() == i) {
this.f = aH1;
this.c = i;
break;
}
}
if (this.f == null && i >= 0)
throw new ExceptionInAxPackage("No OutputChannel found for offset: " + i);
}
return (this.f != null) ? this.f.i() : 0.0D;
}
public double b(CloneableImplInAxPackage paramS) {
return a(paramS);
}
public String toString() {
return "getChannelTranslateByOffset( " + this.b.toString() + " )";
}
}
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/L/x.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/