You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
package seng302.Networking.Utils;
|
|
|
|
/**
|
|
* 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;
|
|
}
|
|
}
|