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