|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectguarana.util.observer.smart.SmartObservable
guarana.framework.port.Port
guarana.framework.port.TwoWayPort
public abstract class TwoWayPort
A generic communication port to solicit or respond for resources.
Constructor Summary | |
---|---|
TwoWayPort(String name)
Constructs a new two way port with the given name. |
|
TwoWayPort(String name,
Process process)
Constructs a two way port with the given name and associates it with the given process. |
Method Summary | |
---|---|
Slot |
getInterSlotIn()
Returns the interslot used by this port to receive messages from a process. |
Slot |
getInterSlotOut()
Returns the interslot used by this port to send messages to a process. |
void |
setInterSlotIn(Slot interSlot)
Sets the interslot used by this port to receive messages from a process. |
void |
setInterSlotOut(Slot interSlot)
Sets the interslot used by this port to send messages to a process. |
Methods inherited from class guarana.framework.port.Port |
---|
addPreScheduledTask, addTask, containsPreScheduledTasks, containsTask, countTask, getAllTasks, getCommunicator, getName, getProcess, getTask, initialise, pollPreScheduledTasks, removeTask, setCommunicator, setName, setProcess, update |
Methods inherited from class guarana.util.observer.smart.SmartObservable |
---|
addSmartObserver, containsSmartObserver, containsSmartObserver, countSmartObservers, deleteSmartObserver, deleteSmartObservers, hasChanged, notifySmartObservers, notifySmartObservers |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TwoWayPort(String name)
name
- The name of this new port.public TwoWayPort(String name, Process process)
name
- The name of this new port.process
- The process to which this port will belong.Method Detail |
---|
public void setInterSlotIn(Slot interSlot) throws InvalidParameterException
interSlot
- The interSlot.
InvalidParameterException
- if the interSlot parameter is null
.public Slot getInterSlotIn()
public void setInterSlotOut(Slot interSlot) throws InvalidParameterException
interSlot
- The interSlot.
InvalidParameterException
- if the interSlot parameter is null
.public Slot getInterSlotOut()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |