public class Cartcomm extends Intracomm {
public Object clone() { ... }
// Topology Constructors
static public dimsCreate(int nnodes, int [] dims) throws MPJException {...}
public CartParms get() throws MPJException {...}
public int rank(int [] coords) throws MPJException {...}
public int [] coords(int rank) throws MPJException {...}
public ShiftParms shift(int direction, int disp) throws MPJException {...}
public Cartcomm sub(boolean [] remainDims) throws MPJException {...}
public int map(int [] dims, boolean [] periods) throws MPJException {...}
}
public class CartParms {
// Return type for Cartcomm.get()
public int [] dims ;
public booleans [] periods ;
public int [] coords ;
}
public class ShiftParms {
// Return type for Cartcomm.shift()
public int rankSource ;
public int rankDest ;
}
public class Graphcomm extends Intracomm {
public Object clone() {...}
// Topology Constructors
public GraphParms get() throws MPJException {...}
public int [] neighbours(int rank) throws MPJException {...}
public int map(int [] index, int [] edges) throws MPJException {...}
}
public class GraphParms {
// Return type for Graphcomm.get()
public int [] index ;
public int [] edges ;
}