Package ptolemy.domains.atc.kernel
Class ATCReceiver
- java.lang.Object
-
- ptolemy.actor.AbstractReceiver
-
- ptolemy.domains.de.kernel.DEReceiver
-
- ptolemy.domains.atc.kernel.ATCReceiver
-
- All Implemented Interfaces:
Receiver
public class ATCReceiver extends DEReceiver
A receiver for modeling air traffic control systems. This receiver checks the containing actor, and if it can reject inputs, then uses it to determine whether to accept a token.- Since:
- Ptolemy II 11.0
- Version:
- $Id$
- Author:
- Marjan Sirjani and Edward A. Lee
-
-
Field Summary
-
Fields inherited from class ptolemy.domains.de.kernel.DEReceiver
_directorVersion, _tokens
-
-
Constructor Summary
Constructors Constructor Description ATCReceiver()
Create a new receiver.ATCReceiver(IOPort container)
Create a new receiver in the specified container with the specified name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
put(Token token)
Put the token.-
Methods inherited from class ptolemy.domains.de.kernel.DEReceiver
clear, elementList, get, hasRoom, hasRoom, hasToken, hasToken
-
Methods inherited from class ptolemy.actor.AbstractReceiver
getArray, getContainer, getCurrentTime, getModelTime, isKnown, putArray, putArrayToAll, putToAll, reset, setContainer, toString
-
-
-
-
Constructor Detail
-
ATCReceiver
public ATCReceiver()
Create a new receiver.
-
ATCReceiver
public ATCReceiver(IOPort container) throws IllegalActionException
Create a new receiver in the specified container with the specified name.- Parameters:
container
- The container.- Throws:
IllegalActionException
- If this actor cannot be contained by the proposed container (see the setContainer() method).
-
-
Method Detail
-
put
public void put(Token token) throws IllegalActionException, NoRoomException
Put the token.- Specified by:
put
in interfaceReceiver
- Overrides:
put
in classDEReceiver
- Parameters:
token
- The token- Throws:
IllegalActionException
- If the token cannot be putNoRoomException
- If there is no room.
-
-