com.cycling74.max
Class DataTypes

java.lang.Object
  extended by com.cycling74.max.DataTypes

public final class DataTypes
extends java.lang.Object

This class contains constants describing the various data types that MaxObjects can pass through their outlets and inlets, and a method to make them readable.


Field Summary
static int ALL
          All things considered: this inlet or outlet can pass INT, FLOAT, LIST, and/or MESSAGE.
static int ANYTHING
          All things considered - synonym for ALL.
static int FLOAT
          This inlet or outlet can pass floats.
static int INT
          This inlet or outlet can pass integers.
static int LIST
          This inlet or outlet can pass lists (arrays) of Atoms
static int MESSAGE
          This inlet or outlet can pass messages, meaning a String plus an array of Atoms.
 
Method Summary
static java.lang.String toString(int typeDescr)
          Renders a type description as a name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INT

public static final int INT
This inlet or outlet can pass integers.

See Also:
Constant Field Values

FLOAT

public static final int FLOAT
This inlet or outlet can pass floats.

See Also:
Constant Field Values

LIST

public static final int LIST
This inlet or outlet can pass lists (arrays) of Atoms

See Also:
Constant Field Values

MESSAGE

public static final int MESSAGE
This inlet or outlet can pass messages, meaning a String plus an array of Atoms.

See Also:
Constant Field Values

ALL

public static final int ALL
All things considered: this inlet or outlet can pass INT, FLOAT, LIST, and/or MESSAGE.

See Also:
Constant Field Values

ANYTHING

public static final int ANYTHING
All things considered - synonym for ALL. This inlet or outlet can pass INT, FLOAT, LIST, and/or MESSAGE.

See Also:
Constant Field Values
Method Detail

toString

public static java.lang.String toString(int typeDescr)
Renders a type description as a name.

Parameters:
typeDescr - an integer type description code, a bit mask derived from combinations of the constant values defined in this class.
Returns:
a human-readable description of the typeDescr argument