next up previous contents index
Next: Index Up: Translation scheme Previous: Generic element type   Contents   Index

Support Classes

Figures A.45 through A.65 list the most important parts of the various classes and interfaces used in the HPJava translation scheme.

The classes defined in figures A.45 through A.60 can be freely used in an HPJava source program. The classes defined in figures A.61 through A.65 are effectively reserved by the HPJava translator: they will appear in generated code, but should not appear in a program input to the translator.

Figure A.45: The HPspmd interface.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}public interface HPspmd {
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.46: The Group class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
...lic DimSet getDimSet() {...}
...
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.47: The Procs class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
...public Dimension dim(int r) {...}
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.48: The Procs0 class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
... public Procs0() {
super(0) ;
}
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.49: The Procs1 class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
... public Procs1() {
super(1) ;
}
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.50: The Procs2 class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
... public Procs2() {
super(2) ;
}
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.51: The DimSet class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
...id remove(Dimension d) {...}
...
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.52: The Range class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
...atic final DIST_COLLAPSED = ... ;
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.53: The Dimension class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
...s Range {
public int crd() {...}
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.54: The BlockRange class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
...ange(int size, Dimension d) {...}
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.55: The ExtBlockRange class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
...ension d, int wLo, int wHi) {...}
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.56: The CollapsedRange class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
...ic CollapsedRange(int size) {...}
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.57: The CyclicRange class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
...ange(int size, Dimension d) {...}
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.58: The Block class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
...MPTY = new Block(0, 0, 1, 0, 1) ;
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.59: The Location class

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
....sub = sub ;
this.dim = dim ;
}
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.60: The Triplet class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
...blic boolean inRange(int n) {...}
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.61: The APGGroup class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
...ass APGGroup extends Group {
...
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.62: The ArrayBase class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
... = group ;
this.base = base ;
}
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.63: The ArrayDim class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
... = x ;
this.stride = stride ;
}
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.64: The SeqArrayDim class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
..._bas = 0 ;
off_stp = stride ;
}
}\end{verbatim}\end{minipage}\end{displaymath}

Figure A.65: The DAD class.

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}publi...
...nsions = new ArrayDim [rank] ;
}
}\end{verbatim}\end{minipage}\end{displaymath}


next up previous contents index
Next: Index Up: Translation scheme Previous: Generic element type   Contents   Index
Bryan Carpenter 2003-04-15