p2pmpi.mpi
Class Datatype

java.lang.Object
  extended by p2pmpi.mpi.Datatype

public class Datatype
extends java.lang.Object

Primitive datatypes


Field Summary
static int BOOLEAN
          Primitive datatype (Boolean)
static int BYTE
          Primitive datatype (Byte)
static int CHAR
          Primitive datatype (Char)
static int DOUBLE
          Primitive datatype (Double)
static int FLOAT
          Primitive datatype (Float)
static int INT
          Primitive datatype (Integer)
static int LONG
          Primitive datatype (Long)
static int NULL
          Primitive datatype (NULL)
static int OBJECT
           
static int PACKED
          Primitive datatype (not available yet)
static int SHORT
          Primitive datatype (Short)
static int STRING
          Primitive datatype (String)
static int[] typeSize
          Size (in byte) of each datatype
 
Constructor Summary
Datatype(int type)
          Default constructor
Datatype(int type, int[] dispSeq)
          Internal use
 
Method Summary
 Datatype Contiguous(int count)
          Create a contiguous datatype
 int Extent()
          Returns the extent of a datatype
 int getBaseSize()
          Returns the base size of datatype
 int getBaseType()
          Returns the base type of datatype
 int[] getDisplacementSequence()
          Returns the sequence of displacement of data
 int Lb()
          The lower bound of a datatype
 int Size()
          Returns the size of a datatype
 int Ub()
          The upper bound of a datatype
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final int NULL
Primitive datatype (NULL)

See Also:
Constant Field Values

BYTE

public static final int BYTE
Primitive datatype (Byte)

See Also:
Constant Field Values

CHAR

public static final int CHAR
Primitive datatype (Char)

See Also:
Constant Field Values

SHORT

public static final int SHORT
Primitive datatype (Short)

See Also:
Constant Field Values

BOOLEAN

public static final int BOOLEAN
Primitive datatype (Boolean)

See Also:
Constant Field Values

INT

public static final int INT
Primitive datatype (Integer)

See Also:
Constant Field Values

LONG

public static final int LONG
Primitive datatype (Long)

See Also:
Constant Field Values

FLOAT

public static final int FLOAT
Primitive datatype (Float)

See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
Primitive datatype (Double)

See Also:
Constant Field Values

PACKED

public static final int PACKED
Primitive datatype (not available yet)

See Also:
Constant Field Values

STRING

public static final int STRING
Primitive datatype (String)

See Also:
Constant Field Values

OBJECT

public static final int OBJECT
See Also:
Constant Field Values

typeSize

public static final int[] typeSize
Size (in byte) of each datatype

Constructor Detail

Datatype

public Datatype(int type)
Default constructor


Datatype

public Datatype(int type,
                int[] dispSeq)
Internal use

Method Detail

Lb

public int Lb()
The lower bound of a datatype

Returns:
displacement of lower bound from origin

Ub

public int Ub()
The upper bound of a datatype

Returns:
displacement of upper bound from origin

Extent

public int Extent()
Returns the extent of a datatype

Returns:
datatype extent

Size

public int Size()
Returns the size of a datatype

Returns:
datatype size

Contiguous

public Datatype Contiguous(int count)
Create a contiguous datatype

Parameters:
count - number of elements
Returns:
contiguous datatype

getDisplacementSequence

public int[] getDisplacementSequence()
Returns the sequence of displacement of data

Returns:
sequence of displacement

getBaseType

public int getBaseType()
Returns the base type of datatype

Returns:
base type

getBaseSize

public int getBaseSize()
Returns the base size of datatype

Returns:
size of base type