/interpreter/tags/at2dist091109/src/edu/vub/at/actors/ATLetter.java

http://ambienttalk.googlecode.com/ · Java · 32 lines · 8 code · 6 blank · 18 comment · 0 complexity · f3a9a87800c74541f382486bd4510bd5 MD5 · raw file

  1. package edu.vub.at.actors;
  2. import edu.vub.at.exceptions.InterpreterException;
  3. import edu.vub.at.objects.ATObject;
  4. /**
  5. * ATLetter is the public interface to an AmbientTalk letter. The inbox of
  6. * and actor consists of a set of objects that implement this interface.
  7. * @author stimberm
  8. */
  9. public interface ATLetter extends ATObject {
  10. /**
  11. * Returns the receiver of the letter
  12. * @return the receiver of the letter
  13. */
  14. public ATObject base_receiver() throws InterpreterException;
  15. /**
  16. * Returns the message that is contained in the letter and
  17. * that should be delivered to the receiver.
  18. * @return an {@link ATAsyncMessage} denoting the message
  19. */
  20. public ATAsyncMessage base_message() throws InterpreterException;
  21. /**
  22. * Cancels the delivery of this letter. It is immediately removed
  23. * from the actor's inbox.
  24. */
  25. public ATObject base_cancel() throws InterpreterException;
  26. }