1 29 package jegg.impl; 30 31 import jegg.Message; 32 import jegg.Port; 33 34 45 public class MessageImpl implements Message 46 { 47 48 private Port _from; 49 50 private Object _message; 51 52 private Priority _priority; 53 54 61 public MessageImpl(Object m, Port p, Priority pr) 62 { 63 _from = p; 64 _message = m; 65 _priority = pr; 66 } 67 68 72 public final Port getFrom() 73 { 74 return _from; 75 } 76 77 81 public final Object getMessage() 82 { 83 return _message; 84 } 85 86 90 public final Priority getPriority() 91 { 92 return _priority; 93 } 94 95 99 public final String toString() 100 { 101 return "Message("+_message.toString()+")"; 102 } 103 } 104 | Popular Tags |