public abstract class BaseCommand extends Object implements gov.usgs.net.Command
| Modifier and Type | Field and Description |
|---|---|
protected Data |
data |
protected DecimalFormat |
decimalFormat |
protected WaveServerEmulator |
emulator |
protected int |
maxDays |
protected gov.usgs.net.NetTools |
netTools |
protected static int |
ONE_DAY |
protected static int |
ONE_HOUR |
protected WinstonDatabase |
winston |
protected WWS |
wws |
| Constructor and Description |
|---|
BaseCommand(gov.usgs.net.NetTools nt,
WinstonDatabase db,
WWS wws) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowTransaction(double[] d) |
protected double[] |
checkTimes(int sid,
double t1,
double t2) |
protected String |
getError(double[] d) |
protected void |
sendNoChannelResponse(String id,
int pin,
String s,
String c,
String n,
String l,
SocketChannel channel) |
protected int |
writeByteBuffer(String id,
ByteBuffer bb,
boolean compress,
SocketChannel channel) |
int |
writeWaveAsAscii(gov.usgs.plot.data.Wave wave,
int sid,
String id,
String s,
String c,
String n,
String l,
double t1,
double t2,
String fill,
SocketChannel channel) |
protected static final int ONE_HOUR
protected static final int ONE_DAY
protected gov.usgs.net.NetTools netTools
protected WinstonDatabase winston
protected WWS wws
protected Data data
protected WaveServerEmulator emulator
protected int maxDays
protected DecimalFormat decimalFormat
public BaseCommand(gov.usgs.net.NetTools nt,
WinstonDatabase db,
WWS wws)
protected void sendNoChannelResponse(String id, int pin, String s, String c, String n, String l, SocketChannel channel)
protected int writeByteBuffer(String id, ByteBuffer bb, boolean compress, SocketChannel channel)
protected String getError(double[] d)
protected boolean allowTransaction(double[] d)
protected double[] checkTimes(int sid,
double t1,
double t2)
Copyright © 2017. All rights reserved.