API Reference for Enthought Tool Suite 2.7.1

Interface for objects that can hold tokens.

An implementation of this interface has two key methods: put() and get(). The put() method deposits a token into the receiver. The get() method retrieves a token that has been put. The order of the retrieved tokens depends on specific implementations, and does not necessarily match the order in which tokens have been put.

All implementations of this interface must follow these rules, regardless of the number of threads that are accessing the receiver:

In general, this means that multithreaded domains must provide synchronization for receivers. Note that both NoTokenException and NoRoomException are runtime exceptions, so they need not be declared explicitly.

Objects that implement this interface can only be contained by an instance of IOPort.

Inherits from

Attributes

Inherited from base classes

Method summary

Inherited from base classes

Methods

Copyright © 2002-2008 Enthought, Inc.