org.objectweb.proactive.core.group.topology
Class TorusCube

java.lang.Object
  |
  +--org.objectweb.proactive.core.body.proxy.AbstractProxy
        |
        +--org.objectweb.proactive.core.group.ProxyForGroup
              |
              +--org.objectweb.proactive.core.group.topology.TopologyGroup
                    |
                    +--org.objectweb.proactive.core.group.topology.Ring
                          |
                          +--org.objectweb.proactive.core.group.topology.Torus
                                |
                                +--org.objectweb.proactive.core.group.topology.TorusCube
All Implemented Interfaces:
java.util.Collection, Group, Proxy, java.io.Serializable

public class TorusCube
extends Torus

This class represents a group by a cycling three-dimensional topology.

Author:
Laurent Baduel
See Also:
Serialized Form

Field Summary
protected  int depth
          depth of the three-dimensional topology group
 
Fields inherited from class org.objectweb.proactive.core.group.topology.Torus
height
 
Fields inherited from class org.objectweb.proactive.core.group.topology.Ring
width
 
Fields inherited from class org.objectweb.proactive.core.group.ProxyForGroup
className, dispatching, logger, memberList, stub, uniqueSerialization, waited
 
Constructor Summary
TorusCube(Group g, int height, int width, int depth)
          Construtor.
 
Method Summary
 java.lang.Object ahead(java.lang.Object o)
          Returns the object ahead the specified object in the three-dimensional topology group
 java.lang.Object behind(java.lang.Object o)
          Returns the object behind the specified object in the three-dimensional topology group
 java.lang.Object down(java.lang.Object o)
          Returns the object at the down of the specified object in the three-dimensional topology group
 int getDepth()
          Returns the height of the three-dimensional topology group (number of Rings)
 int getHeight()
          Returns the height of the three-dimensional topology group (number of Rings)
 int getWidth()
          Returns the width of the three-dimensional topology group (number of cloumns)
 java.lang.Object left(java.lang.Object o)
          Returns the object at the left of the specified object in the three-dimensional topology group
 java.lang.Object right(java.lang.Object o)
          Returns the object at the right of the specified object in the three-dimensional topology group
 Ring RingX(java.lang.Object o)
          Returns the horizontal Ring (one-dimensional topology group) that contains the object
 Ring RingY(java.lang.Object o)
          Returns the vertical Ring (kind of column)(one-dimensional topology group) that contains the object
 Ring RingZ(java.lang.Object o)
          Returns the Ring in depth (one-dimensional topology group) that contains the object
 Torus TorusX(java.lang.Object o)
          Returns the Torus in X (two-dimensional topology group) that contains the object
 Torus TorusY(java.lang.Object o)
          Returns the Torus in Y (two-dimensional topology group) that contains the object
 Torus TorusZ(java.lang.Object o)
          Returns the Torus in Z (two-dimensional topology group) that contains the object
 java.lang.Object up(java.lang.Object o)
          Returns the object at the up of the specified object in the three-dimensional topology group
 
Methods inherited from class org.objectweb.proactive.core.group.topology.Torus
column, column, getX, getY, Ring, Ring
 
Methods inherited from class org.objectweb.proactive.core.group.ProxyForGroup
add, addAll, addMerge, addToListOfResult, allArrived, allAwaited, asynchronousCallOnGroup, barrier, clear, contains, containsAll, createMemberWithMultithread, difference, display, equals, exclude, get, getExceptionList, getGroupByType, getType, getTypeName, hashCode, indexOf, intersection, isDispatchingOn, isEmpty, iterator, listIterator, oneWayCallOnGroup, purgeExceptionAndNull, range, reify, remove, remove, removeAll, retainAll, set, setDispatchingOff, setDispatchingOn, setRatioNemberToThread, setSPMDGroup, setUniqueSerializationOff, setUniqueSerializationOn, size, toArray, toArray, union, waitAll, waitAndGetOne, waitAndGetTheNth, waitN, waitOne, waitOneAndGetIndex, waitTheNth
 
Methods inherited from class org.objectweb.proactive.core.body.proxy.AbstractProxy
isAsynchronousCall, isOneWayCall
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

depth

protected int depth
depth of the three-dimensional topology group

Constructor Detail

TorusCube

public TorusCube(Group g,
                 int height,
                 int width,
                 int depth)
          throws ConstructionOfReifiedObjectFailedException
Construtor. The members of g are used to fill the topology group.

Parameters:
g - - the group used a base for the new group (topology)
height - - the heigth of the three-dimensional topology group
width - - the width of the three-dimensional topology group
depth - - the depth of the three-dimensional topology group
Throws:
ConstructionOfReifiedObjectFailedException
Method Detail

getWidth

public int getWidth()
Returns the width of the three-dimensional topology group (number of cloumns)

Overrides:
getWidth in class Torus
Returns:
the width of the three-dimensional topology group

getHeight

public int getHeight()
Returns the height of the three-dimensional topology group (number of Rings)

Overrides:
getHeight in class Torus
Returns:
the height of the three-dimensional topology group

getDepth

public int getDepth()
Returns the height of the three-dimensional topology group (number of Rings)

Returns:
the height of the three-dimensional topology group

left

public java.lang.Object left(java.lang.Object o)
Returns the object at the left of the specified object in the three-dimensional topology group

Overrides:
left in class Torus
Parameters:
o - - the specified object
Returns:
the object at the left of o. If there is no object at the left of o, return null

right

public java.lang.Object right(java.lang.Object o)
Returns the object at the right of the specified object in the three-dimensional topology group

Overrides:
right in class Torus
Parameters:
o - - the specified object
Returns:
the object at the right of o. If there is no object at the right of o, return null

up

public java.lang.Object up(java.lang.Object o)
Returns the object at the up of the specified object in the three-dimensional topology group

Overrides:
up in class Torus
Parameters:
o - - the specified object
Returns:
the object at the up of o. If there is no object at the up of o, return null

down

public java.lang.Object down(java.lang.Object o)
Returns the object at the down of the specified object in the three-dimensional topology group

Overrides:
down in class Torus
Parameters:
o - - the specified object
Returns:
the object at the down of o. If there is no object at the down of o, return null

ahead

public java.lang.Object ahead(java.lang.Object o)
Returns the object ahead the specified object in the three-dimensional topology group

Parameters:
o - - the specified object
Returns:
the object at the down of o. If there is no object at the down of o, return null

behind

public java.lang.Object behind(java.lang.Object o)
Returns the object behind the specified object in the three-dimensional topology group

Parameters:
o - - the specified object
Returns:
the object at the down of o. If there is no object at the down of o, return null

RingX

public Ring RingX(java.lang.Object o)
Returns the horizontal Ring (one-dimensional topology group) that contains the object

Parameters:
o - - the object
Returns:
the one-dimensional topology group formed by the horizontal Ring that contains the object in the three-dimensional topology group

RingY

public Ring RingY(java.lang.Object o)
Returns the vertical Ring (kind of column)(one-dimensional topology group) that contains the object

Parameters:
o - - the object
Returns:
the one-dimensional topology group formed by the vertical Ring that contains the object in the three-dimensional topology group

RingZ

public Ring RingZ(java.lang.Object o)
Returns the Ring in depth (one-dimensional topology group) that contains the object

Parameters:
o - - the object
Returns:
the one-dimensional topology group formed by the Ring in depth that contains the object in the three-dimensional topology group

TorusX

public Torus TorusX(java.lang.Object o)
Returns the Torus in X (two-dimensional topology group) that contains the object

Parameters:
o - - the object
Returns:
the two-dimensional topology group formed by the Torus in X that contains the object in the three-dimensional topology group

TorusY

public Torus TorusY(java.lang.Object o)
Returns the Torus in Y (two-dimensional topology group) that contains the object

Parameters:
o - - the object
Returns:
the two-dimensional topology group formed by the Torus in Y that contains the object in the three-dimensional topology group

TorusZ

public Torus TorusZ(java.lang.Object o)
Returns the Torus in Z (two-dimensional topology group) that contains the object

Parameters:
o - - the object
Returns:
the two-dimensional topology group formed by the Torus in Z that contains the object in the three-dimensional topology group


Copyright © April 2004 INRIA All Rights Reserved.