Rev | Line | |
---|
[31] | 1 | package vnsim.applications.ezcab; |
---|
| 2 | |
---|
| 3 | import java.io.Serializable; |
---|
| 4 | |
---|
| 5 | import vnsim.map.object.Globals; |
---|
| 6 | |
---|
| 7 | /** |
---|
| 8 | * Mazilu Sinziana |
---|
| 9 | * |
---|
| 10 | * Class for EZCab Message Header |
---|
| 11 | * _____________________________ |
---|
| 12 | * | | | |
---|
| 13 | * | EZCab PROT | Type Message | |
---|
| 14 | * |____________|______________| |
---|
| 15 | * |
---|
| 16 | **/ |
---|
| 17 | |
---|
| 18 | public class EzcabMessage implements Serializable { |
---|
| 19 | |
---|
| 20 | public byte protType; |
---|
| 21 | public int messageType; |
---|
| 22 | |
---|
| 23 | public EzcabMessage(byte protType, int messageType) { |
---|
| 24 | this.protType = protType; |
---|
| 25 | this.messageType = messageType; |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | public EzcabMessage(){ |
---|
| 29 | this.protType = Globals.PROT_EZCAB; |
---|
| 30 | this.messageType = 0; |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | public EzcabMessage(int messageType){ |
---|
| 34 | this.protType = Globals.PROT_EZCAB; |
---|
| 35 | this.messageType = messageType; |
---|
| 36 | } |
---|
| 37 | |
---|
| 38 | public byte getProtType() { |
---|
| 39 | return protType; |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | public void setProtType(byte protType) { |
---|
| 43 | this.protType = protType; |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | public int getMessageType() { |
---|
| 47 | return messageType; |
---|
| 48 | } |
---|
| 49 | |
---|
| 50 | public void setMessageType(byte messageType) { |
---|
| 51 | this.messageType = messageType; |
---|
| 52 | } |
---|
| 53 | |
---|
| 54 | } |
---|
| 55 | |
---|
Note: See
TracBrowser
for help on using the repository browser.