+/EE360P
distributed systems
git clone https://git.julia.blue/+/EE360P
6bd33a4
master
1package dist ; 2import java .util .*; 3public class Msg { 4public int src ,dest ; 5public String tag ; 6LinkedList <Object >msgBuf ; 7public Msg (int s ,int t ,String msgType ,LinkedList <Object >buf ) { 8this .src =s ; 9dest =t ; 10tag =msgType ; 11msgBuf =buf ; 12 } 13public LinkedList <Object >getMsgBuf () { 14return msgBuf ; 15 } 16public int getMessageInt () { 17return (Integer )msgBuf .removeFirst (); 18 } 19 20public String toString (){ 21String s =String .valueOf (src )+" " + 22String .valueOf (dest )+" " + 23tag +" " +msgBuf .toString () ; 24return s ; 25 } 26}