ptolemy.graph.mapping
Interface ToIntMapping

All Superinterfaces:
Mapping
All Known Implementing Classes:
ToIntMapMapping

public interface ToIntMapping
extends Mapping

A mapping from objects into int values.

Since:
Ptolemy II 4.0
Version:
$Id: ToIntMapping.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Shuvra S. Bhattacharyya, Shahrooz Shahparnia
Accepted Rating:
Red (ssb)
Proposed Rating:
Red (ssb)

Method Summary
 int toInt(java.lang.Object object)
          Return the int value associated with the given object.
 
Methods inherited from interface ptolemy.graph.mapping.Mapping
inDomain, toObject
 

Method Detail

toInt

int toInt(java.lang.Object object)
Return the int value associated with the given object.

Parameters:
object - The given object.
Returns:
The int value that is associated with given object under this mapping.