guarana.framework.port
Class OneWayPort

java.lang.Object
  extended by guarana.util.observer.smart.SmartObservable
      extended by guarana.framework.port.Port
          extended by guarana.framework.port.OneWayPort
All Implemented Interfaces:
ISource, ITaskContainer, guarana.util.observer.smart.ISmartObserver
Direct Known Subclasses:
EntryPort, ExitPort

public abstract class OneWayPort
extends Port

A generic communication port to receive or send messages.

Since:
Guaranį SDK 1.0.0
Author:
Rafael Z. Frantz

Constructor Summary
OneWayPort(String name)
          Constructs a new one way port with the given name.
OneWayPort(String name, Process process)
          Constructs a new one way port with the given name and associates it with the given process.
 
Method Summary
 Slot getInterSlot()
          Returns the interslot in this port.
 void setInterSlot(Slot interSlot)
          Sets the interslot to this port.
 
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

OneWayPort

public OneWayPort(String name)
Constructs a new one way port with the given name.

Parameters:
name - The name of this new port.

OneWayPort

public OneWayPort(String name,
                  Process process)
Constructs a new one way port with the given name and associates it with the given process.

Parameters:
name - The name of this new port.
process - The process to which this port will belong.
Method Detail

setInterSlot

public void setInterSlot(Slot interSlot)
                  throws InvalidParameterException
Sets the interslot to this port. The slot is shared with a process.

Parameters:
interSlot - The interSlot.
Throws:
InvalidParameterException - if the interSlot parameter is null.

getInterSlot

public Slot getInterSlot()
Returns the interslot in this port.

Returns:
the interSlot


Guaranį DSL Home