bees.core
Class BeesEvent
java.lang.Object
|
+--edu.utah.janosvm.sys.ListNode
|
+--edu.utah.janosvm.kit.comm.amiga.Facsimile
|
+--bees.core.BeesEvent
- All Implemented Interfaces:
- java.lang.Cloneable, edu.utah.janosvm.sys.CrossTeamCloneable
- Direct Known Subclasses:
- BDomainEndingEvent, DeleteBDomain, ExternalCapsuleEvent, TwoWayBeesEvent
- public class BeesEvent
- extends edu.utah.janosvm.kit.comm.amiga.Facsimile
Base class for generic events that can be sent between coroutines in two
domains.
Fields inherited from class edu.utah.janosvm.sys.ListNode |
pred, succ |
Constructor Summary |
protected |
BeesEvent()
Construct an empty BeesEvent object. |
protected |
BeesEvent(Coroutine coroutine)
Construct an empty BeesEvent object. |
Methods inherited from class edu.utah.janosvm.kit.comm.amiga.Facsimile |
clone, getReplyPort, isReply, setReplyPort |
Methods inherited from class edu.utah.janosvm.sys.ListNode |
append, inList, prepend, remove |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BeesEvent
protected BeesEvent(Coroutine coroutine)
- Construct an empty BeesEvent object.
- Parameters:
coroutine
- The coroutine thats using this event.
BeesEvent
protected BeesEvent()
- Construct an empty BeesEvent object.
useBDomainReplyPort
public final void useBDomainReplyPort()
- Use the domain's main port for the event's reply port.
setClientCoroutineID
public void setClientCoroutineID(long id)
- Parameters:
id
- The id of the coroutine that sent this event. Only needs to
be set if a reply is expected.
getClientCoroutineID
public long getClientCoroutineID()
- Returns:
- The id of the coroutine that sent this event. Only needs to be
set if a reply is expected.
setServerCoroutineID
public void setServerCoroutineID(long id)
- Parameters:
id
- The id of the coroutine that should handle the initial event.
getServerCoroutineID
public long getServerCoroutineID()
- Returns:
- The id of the coroutine that should handle the initial event.
setCoroutineClass
protected void setCoroutineClass(java.lang.Class cl)
- Parameters:
cl
- The coroutine type this event is bound to.
getCoroutineClass
protected java.lang.Class getCoroutineClass()
- Returns:
- The coroutine type this event is bound to.
reply
protected final void reply()
throws edu.utah.janosvm.sys.DeadTeamException,
edu.utah.janosvm.sys.TeamEjectionException
- Overrides:
reply
in class edu.utah.janosvm.kit.comm.amiga.Facsimile
- See Also:
Facsimile.reply()
sendReply
protected void sendReply()
throws DeadBDomainException
- Send a reply to the event.
- Throws:
DeadBDomainException
- If the destination domain is unreachable
toString
public java.lang.String toString()
- Overrides:
toString
in class edu.utah.janosvm.kit.comm.amiga.Facsimile
- See Also:
Object.toString()
This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/