parent
23e007bd11
commit
fdd994b7c0
@ -0,0 +1,52 @@
|
|||||||
|
package seng302.Networking;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by hba56 on 23/04/17.
|
||||||
|
*/
|
||||||
|
public class BoatStatus {
|
||||||
|
private int sourceID;
|
||||||
|
private byte boatStatus;
|
||||||
|
private byte legNumber;
|
||||||
|
private byte numPenaltiesAwarded;
|
||||||
|
private byte numPenaltiesServed;
|
||||||
|
private long estTimeAtNextMark;
|
||||||
|
private long estTimeAtFinish;
|
||||||
|
|
||||||
|
public BoatStatus(int sourceID, byte boatStatus, byte legNumber, byte numPenaltiesAwarded, byte numPenaltiesServed, long estTimeAtNextMark, long estTimeAtFinish) {
|
||||||
|
this.sourceID = sourceID;
|
||||||
|
this.boatStatus = boatStatus;
|
||||||
|
this.legNumber = legNumber;
|
||||||
|
this.numPenaltiesAwarded = numPenaltiesAwarded;
|
||||||
|
this.numPenaltiesServed = numPenaltiesServed;
|
||||||
|
this.estTimeAtNextMark = estTimeAtNextMark;
|
||||||
|
this.estTimeAtFinish = estTimeAtFinish;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getSourceID() {
|
||||||
|
return sourceID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte getBoatStatus() {
|
||||||
|
return boatStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte getLegNumber() {
|
||||||
|
return legNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte getNumPenaltiesAwarded() {
|
||||||
|
return numPenaltiesAwarded;
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte getNumPenaltiesServed() {
|
||||||
|
return numPenaltiesServed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public long getEstTimeAtNextMark() {
|
||||||
|
return estTimeAtNextMark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public long getEstTimeAtFinish() {
|
||||||
|
return estTimeAtFinish;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in new issue