mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-24 13:45:00 +00:00
Refactor class names for clarity: rename 'l' to 'TcpWifiConnection', 'c' to 'ProtocolAdapterFactory', 'd' to 'ProtocolVersionNegotiator', and 'a' to 'AccelEnrichmentWizard'; update method parameters for improved readability
This commit is contained in:
@@ -51,7 +51,7 @@ public abstract class AbstractConnectionManager implements ControllerInterface {
|
||||
}
|
||||
|
||||
protected void c() {
|
||||
for (e e : this.b) {
|
||||
for (ConnectionEventListener e : this.b) {
|
||||
try {
|
||||
e.b();
|
||||
} catch (Exception exception) {
|
||||
@@ -62,7 +62,7 @@ public abstract class AbstractConnectionManager implements ControllerInterface {
|
||||
}
|
||||
|
||||
protected void d() {
|
||||
for (e e : this.b) {
|
||||
for (ConnectionEventListener e : this.b) {
|
||||
try {
|
||||
e.a();
|
||||
} catch (Exception exception) {
|
||||
@@ -73,7 +73,7 @@ public abstract class AbstractConnectionManager implements ControllerInterface {
|
||||
}
|
||||
|
||||
protected void e() {
|
||||
for (e e : this.b) {
|
||||
for (ConnectionEventListener e : this.b) {
|
||||
try {
|
||||
e.e();
|
||||
} catch (Exception exception) {
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.util.List;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public class l extends a {
|
||||
public class TcpWifiConnection extends a {
|
||||
public static String b = "TCP/IP - WiFi driver";
|
||||
|
||||
private int l = 0;
|
||||
@@ -75,7 +75,7 @@ public class l extends a {
|
||||
} catch (Exception exception) {
|
||||
b(0);
|
||||
b();
|
||||
Logger.getLogger(l.class.getName()).log(Level.SEVERE, (String)null, exception);
|
||||
Logger.getLogger(TcpWifiConnection.class.getName()).log(Level.SEVERE, (String)null, exception);
|
||||
throw new G.l("Unable to open device: " + exception.getLocalizedMessage() + ", " + v());
|
||||
}
|
||||
}
|
||||
@@ -130,7 +130,7 @@ public class l extends a {
|
||||
this.m = null;
|
||||
} catch (Exception exception) {
|
||||
D.c("Error closing TCP Connection");
|
||||
Logger.getLogger(l.class.getName()).log(Level.SEVERE, (String)null, exception);
|
||||
Logger.getLogger(TcpWifiConnection.class.getName()).log(Level.SEVERE, (String)null, exception);
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
|
||||
@@ -18,7 +18,7 @@ import java.util.List;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public class o extends a {
|
||||
public class UdpConnection extends a {
|
||||
public static String b = "UDP - User Datagram Protocol";
|
||||
|
||||
private int k = 0;
|
||||
@@ -33,9 +33,9 @@ public class o extends a {
|
||||
|
||||
int e = 2000;
|
||||
|
||||
p f = null;
|
||||
|
||||
r g = null;
|
||||
UdpInputStream f = null;
|
||||
|
||||
UdpOutputStream g = null;
|
||||
|
||||
List h = null;
|
||||
|
||||
@@ -61,8 +61,8 @@ public class o extends a {
|
||||
this.l = t();
|
||||
this.l.setSoTimeout(A());
|
||||
this.l.setTrafficClass(20);
|
||||
this.g = new r(this.l);
|
||||
this.f = new p(this.l, this.g);
|
||||
this.g = new UdpOutputStream(this.l);
|
||||
this.f = new UdpInputStream(this.l, this.g);
|
||||
b(3);
|
||||
a();
|
||||
} catch (UnknownHostException unknownHostException) {
|
||||
@@ -76,7 +76,7 @@ public class o extends a {
|
||||
} catch (Exception exception) {
|
||||
b(0);
|
||||
b();
|
||||
Logger.getLogger(o.class.getName()).log(Level.SEVERE, (String)null, exception);
|
||||
Logger.getLogger(UdpConnection.class.getName()).log(Level.SEVERE, (String)null, exception);
|
||||
throw new l("Unable to open device: " + exception.getLocalizedMessage() + ", " + y());
|
||||
}
|
||||
}
|
||||
@@ -108,8 +108,8 @@ public class o extends a {
|
||||
}
|
||||
D.c("Refresh socket to UDP Device: " + y());
|
||||
this.l = t();
|
||||
this.g = new r(this.l);
|
||||
this.f = new p(this.l, this.g);
|
||||
this.g = new UdpOutputStream(this.l);
|
||||
this.f = new UdpInputStream(this.l, this.g);
|
||||
bool = true;
|
||||
} catch (Exception exception) {
|
||||
exception.printStackTrace();
|
||||
|
||||
@@ -85,7 +85,7 @@ public class LocalizationManager {
|
||||
return (str == null || str.equals("")) ? paramString2 : str;
|
||||
}
|
||||
|
||||
public void b(e parame) {
|
||||
public void b(TranslationMapLoader parame) {
|
||||
this.j = parame;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,12 +10,12 @@ import G.bb;
|
||||
import G.r;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class e implements aI, Serializable {
|
||||
public class ReplayDataSource implements aI, Serializable {
|
||||
private String a;
|
||||
|
||||
private String b;
|
||||
|
||||
public e(R paramR) {
|
||||
public ReplayDataSource(R paramR) {
|
||||
this.a = paramR.c();
|
||||
this.b = paramR.c() + "_Replay";
|
||||
}
|
||||
|
||||
@@ -2,20 +2,20 @@ package J;
|
||||
|
||||
import G.F;
|
||||
|
||||
public class c {
|
||||
private static c a = null;
|
||||
|
||||
public static c a() {
|
||||
public class ProtocolAdapterFactory {
|
||||
private static ProtocolAdapterFactory a = null;
|
||||
|
||||
public static ProtocolAdapterFactory a() {
|
||||
if (a == null)
|
||||
a = new c();
|
||||
a = new ProtocolAdapterFactory();
|
||||
return a;
|
||||
}
|
||||
|
||||
|
||||
public void a(F paramF, int paramInt) {
|
||||
if (paramInt > 0 && !(paramF.D() instanceof f))
|
||||
paramF.a(new f());
|
||||
if (paramInt > 0 && !(paramF.C() instanceof g))
|
||||
paramF.a(new g());
|
||||
if (paramInt > 0 && !(paramF.D() instanceof CrcEnvelopeDecoder))
|
||||
paramF.a(new CrcEnvelopeDecoder());
|
||||
if (paramInt > 0 && !(paramF.C() instanceof CrcEnvelopeEncoder))
|
||||
paramF.a(new CrcEnvelopeEncoder());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,14 +8,14 @@ import bH.D;
|
||||
import bH.c;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class d implements cO, Serializable {
|
||||
public class ProtocolVersionNegotiator implements cO, Serializable {
|
||||
bY a = null;
|
||||
|
||||
|
||||
int b = -1;
|
||||
|
||||
e c = null;
|
||||
|
||||
public d() {
|
||||
|
||||
BlockingFactorHolder c = null;
|
||||
|
||||
public ProtocolVersionNegotiator() {
|
||||
this.a = new bY();
|
||||
this.a.a("F");
|
||||
this.a.e("I");
|
||||
|
||||
@@ -12,12 +12,12 @@ import G.bv;
|
||||
import G.c;
|
||||
import G.db;
|
||||
|
||||
public class a extends bv {
|
||||
public class AccelEnrichmentWizard extends bv {
|
||||
private String a = "";
|
||||
|
||||
private R f = null;
|
||||
|
||||
public a(R paramR, int paramInt, boolean paramBoolean) {
|
||||
public AccelEnrichmentWizard(R paramR, int paramInt, boolean paramBoolean) {
|
||||
if (paramInt > 0)
|
||||
this.a = paramInt + "";
|
||||
this.f = paramR;
|
||||
|
||||
Reference in New Issue
Block a user