|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--wonderly.jeaprs.aprs.packet.APRSData | +--wonderly.jeaprs.aprs.packet.APRSObject
Field Summary | |
protected int |
color
|
protected int |
course
|
static int |
DATA_AREAOBJ
|
static int |
DATA_CSESPD
|
static int |
DATA_DFSIGNAL
|
static int |
DATA_PHG
|
static int |
DATA_RANGE
|
protected int |
direct
|
protected int |
gain
|
protected int |
height
|
static int |
HIGH_BLACK
|
static int |
HIGH_BLUE
|
static int |
HIGH_CYAN
|
static int |
HIGH_GRAY
|
static int |
HIGH_GREEN
|
static int |
HIGH_RED
|
static int |
HIGH_VIOLET
|
static int |
HIGH_YELLOW
|
protected int |
latOff
|
protected long |
latSecs
|
protected boolean |
live
|
protected int |
lonOff
|
protected long |
lonSecs
|
static int |
LOW_BLACK
|
static int |
LOW_BLUE
|
static int |
LOW_CYAN
|
static int |
LOW_GRAY
|
static int |
LOW_GREEN
|
static int |
LOW_RED
|
static int |
LOW_VIOLET
|
static int |
LOW_YELLOW
|
protected wonderly.jeaprs.ByteString |
msg
|
protected wonderly.jeaprs.ByteString |
name
|
protected int |
objType
|
protected int |
power
|
protected long |
range
|
protected int |
speed
|
protected byte |
sym
|
protected byte |
tab
|
protected long |
time
|
protected int |
type
|
Fields inherited from class wonderly.jeaprs.aprs.packet.APRSData |
altIcons, data, hasOverlaya, hasOverlayn, icon, overlay, packetType |
Constructor Summary | |
APRSObject()
Create a new APRSObject. |
|
APRSObject(wonderly.jeaprs.ByteString data)
|
Method Summary | |
static java.lang.String |
colorTrans(int color)
|
byte[] |
formatReportData()
This method must be implemented by the various packet types to construct the APRS packet data that follows the PATH in a UI frame. |
int |
getColor()
|
int |
getCourse()
|
double |
getDirectivity()
|
long |
getLatHundredthsSeconds()
|
long |
getLonHundredthsSeconds()
|
wonderly.jeaprs.ByteString |
getMessage()
|
wonderly.jeaprs.ByteString |
getName()
|
int |
getObjectType()
|
double |
getRange()
|
int |
getSpeedInHundredthsMPH()
|
byte |
getSymChar()
|
byte |
getSymTab()
|
long |
getTime()
Time on object in Java time |
boolean |
isAlive()
|
void |
processData(wonderly.jeaprs.aprs.packet.APRSPacket pkt,
wonderly.jeaprs.aprs.packet.APRSEventListener obj)
This method needs to be called for any APRS packet that could produce multiple APRS data objects. |
void |
setAlive(boolean how)
|
void |
setColor(int color)
|
void |
setCourse(int cse)
Select DATA_CSESPD type and specify the course |
void |
setDirectivity(int dir)
Select DATA_PHG type and specify the direction |
void |
setLatHundredthsSeconds(long seconds)
|
void |
setLonHundredthsSeconds(long seconds)
|
void |
setMessage(wonderly.jeaprs.ByteString text)
Set the text sent with the object. |
void |
setName(wonderly.jeaprs.ByteString nm)
|
void |
setObjectType(int type)
|
void |
setPowerHeightGain(int power,
int height,
int gain)
|
void |
setRange(int range)
Select DATA_RANGE type and specify the range |
void |
setSpeedInHundredthsMPH(int spd)
Select DATA_CSESPD int and specify the speed |
void |
setSymChar(byte symbol)
|
void |
setSymTab(byte table)
|
void |
setTime(long millis)
|
void |
setType(int type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface wonderly.jeaprs.aprs.packet.APRSPositionData |
getGridInfo, getIcon, getLatHundredthsSecondsToString, getLonHundredthsSecondsToString, getOverlayIndex, isAltIcon, isGridOnly, isOverlayAlpha, isOverlayNumeric |
Field Detail |
protected wonderly.jeaprs.ByteString name
protected int type
protected long time
protected byte tab
protected byte sym
protected boolean live
protected wonderly.jeaprs.ByteString msg
protected long lonSecs
protected long latSecs
protected int course
protected int speed
protected int power
protected int height
protected int gain
protected long range
protected int direct
protected int objType
protected int latOff
protected int lonOff
protected int color
public static final int DATA_CSESPD
public static final int DATA_PHG
public static final int DATA_RANGE
public static final int DATA_DFSIGNAL
public static final int DATA_AREAOBJ
public static final int HIGH_BLACK
public static final int HIGH_BLUE
public static final int HIGH_GREEN
public static final int HIGH_CYAN
public static final int HIGH_RED
public static final int HIGH_VIOLET
public static final int HIGH_YELLOW
public static final int HIGH_GRAY
public static final int LOW_BLACK
public static final int LOW_BLUE
public static final int LOW_GREEN
public static final int LOW_CYAN
public static final int LOW_RED
public static final int LOW_VIOLET
public static final int LOW_YELLOW
public static final int LOW_GRAY
Constructor Detail |
public APRSObject()
setType(int)
public APRSObject(wonderly.jeaprs.ByteString data)
Method Detail |
public void setPowerHeightGain(int power, int height, int gain)
public void setRange(int range)
public double getRange()
public void setType(int type)
type
- one of the DATA_* values.public wonderly.jeaprs.ByteString getName()
getName
in interface APRSPositionData
public void setName(wonderly.jeaprs.ByteString nm)
public void setAlive(boolean how)
public boolean isAlive()
public void setCourse(int cse)
public int getCourse()
getCourse
in interface APRSPositionData
public void setSpeedInHundredthsMPH(int spd)
public int getSpeedInHundredthsMPH()
getSpeedInHundredthsMPH
in interface APRSPositionData
public void setSymTab(byte table)
public byte getSymTab()
public void setSymChar(byte symbol)
public byte getSymChar()
public void setLatHundredthsSeconds(long seconds)
public void setDirectivity(int dir)
public double getDirectivity()
public void setLonHundredthsSeconds(long seconds)
public long getLonHundredthsSeconds()
getLonHundredthsSeconds
in interface APRSPositionData
public long getLatHundredthsSeconds()
getLatHundredthsSeconds
in interface APRSPositionData
public void setObjectType(int type)
public int getObjectType()
public long getTime()
Date
,
Calendar
public void setTime(long millis)
public void setMessage(wonderly.jeaprs.ByteString text)
public wonderly.jeaprs.ByteString getMessage()
getMessage
in interface APRSPositionData
public byte[] formatReportData()
APRSData
">My status".getBytes()
.
formatReportData
in class APRSData
public void setColor(int color)
public int getColor()
public static java.lang.String colorTrans(int color)
public void processData(wonderly.jeaprs.aprs.packet.APRSPacket pkt, wonderly.jeaprs.aprs.packet.APRSEventListener obj)
APRSData
processData
in interface APRSEventDataProcessor
processData
in class APRSData
APRSPosition.processData(APRSPacket,APRSEventListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |