ibis.mpj
Class MPJ

java.lang.Object
  extended by ibis.mpj.MPJ

public class MPJ
extends Object

Main MPJ class.


Field Summary
static int ANY_SOURCE
           
static int ANY_TAG
           
static Op BAND
           
static Datatype BOOLEAN
           
static Op BOR
           
static Op BXOR
           
static Datatype BYTE
           
static int CART
           
static Datatype CHAR
           
static Comm COMM_SELF
           
static Intracomm COMM_WORLD
           
static int CONGRUENT
           
static Datatype DOUBLE
           
static Datatype DOUBLE2
           
static Datatype FLOAT
           
static Datatype FLOAT2
           
static int GRAPH
           
static Group GROUP_EMPTY
           
static int HOST
           
static int IDENT
           
static Datatype INT
           
static Datatype INT2
           
static int IO
           
static Op LAND
           
static Datatype LB
           
static Datatype LONG
           
static Datatype LONG2
           
static Op LOR
           
static Op LXOR
           
static Op MAX
           
static Op MAXLOC
           
static Op MIN
           
static Op MINLOC
           
static Datatype OBJECT
           
static Datatype PACKED
           
static int PROC_NULL
           
static Op PROD
           
static Datatype SHORT
           
static Datatype SHORT2
           
static int SIMILAR
           
static Op SUM
           
static int TAG_UB
           
static Datatype UB
           
static int UNDEFINED
           
static int UNEQUAL
           
static int WTIME_IS_GLOBAL
           
 
Constructor Summary
MPJ()
           
 
Method Summary
static void bufferAttach(byte[] buffer)
          Provides to MPJ a buffer in user's memory to be used for buffering outgoing messages.
static byte[] bufferDetach()
          Detach the buffer currently associated with MPJ.
static void finish()
          Finalize MPJ.
static String getProcessorName()
          Returns the MPJ name of the processor on which it is called.
static void init(String[] args)
          Initialize MPJ.
static boolean initialized()
          Test if MPJ has been initialized.
static double wtick()
          Returns resolution of the timer.
static double wtime()
          Returns wallclock time
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BYTE

public static final Datatype BYTE

CHAR

public static final Datatype CHAR

SHORT

public static final Datatype SHORT

BOOLEAN

public static final Datatype BOOLEAN

INT

public static final Datatype INT

LONG

public static final Datatype LONG

FLOAT

public static final Datatype FLOAT

DOUBLE

public static final Datatype DOUBLE

OBJECT

public static final Datatype OBJECT

PACKED

public static final Datatype PACKED

LB

public static final Datatype LB

UB

public static final Datatype UB

SHORT2

public static final Datatype SHORT2

INT2

public static final Datatype INT2

LONG2

public static final Datatype LONG2

FLOAT2

public static final Datatype FLOAT2

DOUBLE2

public static final Datatype DOUBLE2

MAX

public static final Op MAX

MIN

public static final Op MIN

SUM

public static final Op SUM

PROD

public static final Op PROD

LAND

public static final Op LAND

BAND

public static final Op BAND

LOR

public static final Op LOR

BOR

public static final Op BOR

LXOR

public static final Op LXOR

BXOR

public static final Op BXOR

MAXLOC

public static final Op MAXLOC

MINLOC

public static final Op MINLOC

GROUP_EMPTY

public static final Group GROUP_EMPTY

COMM_WORLD

public static Intracomm COMM_WORLD

COMM_SELF

public static Comm COMM_SELF

ANY_SOURCE

public static final int ANY_SOURCE
See Also:
Constant Field Values

ANY_TAG

public static final int ANY_TAG
See Also:
Constant Field Values

PROC_NULL

public static final int PROC_NULL
See Also:
Constant Field Values

UNDEFINED

public static final int UNDEFINED
See Also:
Constant Field Values

IDENT

public static final int IDENT
See Also:
Constant Field Values

SIMILAR

public static final int SIMILAR
See Also:
Constant Field Values

CONGRUENT

public static final int CONGRUENT
See Also:
Constant Field Values

UNEQUAL

public static final int UNEQUAL
See Also:
Constant Field Values

CART

public static final int CART
See Also:
Constant Field Values

GRAPH

public static final int GRAPH
See Also:
Constant Field Values

TAG_UB

public static final int TAG_UB
See Also:
Constant Field Values

HOST

public static final int HOST
See Also:
Constant Field Values

IO

public static final int IO
See Also:
Constant Field Values

WTIME_IS_GLOBAL

public static final int WTIME_IS_GLOBAL
See Also:
Constant Field Values
Constructor Detail

MPJ

public MPJ()
Method Detail

init

public static void init(String[] args)
                 throws MPJException
Initialize MPJ.

Parameters:
args - arguments to main method
Throws:
MPJException

finish

public static void finish()
                   throws MPJException
Finalize MPJ.

Throws:
MPJException

getProcessorName

public static String getProcessorName()
                               throws MPJException
Returns the MPJ name of the processor on which it is called.

Returns:
A unique specifier for the actual node
Throws:
MPJException

wtime

public static double wtime()
                    throws MPJException
Returns wallclock time

Returns:
elapsed wallclock time in seconds since some time in the past
Throws:
MPJException

wtick

public static double wtick()
Returns resolution of the timer.

Returns:
resolution of wtime in seconds

initialized

public static boolean initialized()
                           throws MPJException
Test if MPJ has been initialized.

Returns:
true if init has been called, false otherwise
Throws:
MPJException

bufferAttach

public static void bufferAttach(byte[] buffer)
Provides to MPJ a buffer in user's memory to be used for buffering outgoing messages.

Parameters:
buffer - buffer array

bufferDetach

public static byte[] bufferDetach()
Detach the buffer currently associated with MPJ.

Returns:
buffer array


The Ibis project