📄 comm.java
字号:
/**
*
* Program : Comm.java
*
* Author : Vijayakrishnan Menon
*
* Date : 15th Dec 2005
*
* Organization : Centre for Excellence in
* Computational Engineering and Networking (CEN),
* Amrita Viswa Vidyapeetham
**/
package JAMPack;
/** This is the peer to peer communication interface. This is also a remote
* interface, facilitates communication between two remote threads. This
* interface is intended to make the framework compatible with the MPI standard.
* Though the full standard is not implemented, It can still be extended in the
* future vesions. */
public interface Comm {
public void send(Object buff, int destination, JGrid grid, int tag)throws Exception;
public void send(int buff, int destination, JGrid grid, int tag)throws Exception;
public void send(int []buff, int destination, JGrid grid, int tag)throws Exception;
public void send(float buff, int destination, JGrid grid, int tag)throws Exception;
public void send(float []buff, int destination, JGrid grid, int tag)throws Exception;
public void send(double buff, int destination, JGrid grid, int tag)throws Exception;
public void send(double []buff, int destination, JGrid grid, int tag)throws Exception;
public void send(char buff, int destination, JGrid grid, int tag)throws Exception;
public void send(char []buff, int destination, JGrid grid, int tag)throws Exception;
public void send(boolean buff, int destination, JGrid grid, int tag)throws Exception;
public void send(boolean []buff, int destination, JGrid grid, int tag)throws Exception;
public void send(long buff, int destination, JGrid grid, int tag)throws Exception;
public void send(long []buff, int destination, JGrid grid, int tag)throws Exception;
public void send(short buff, int destination, JGrid grid, int tag)throws Exception;
public void send(short []buff, int destination, JGrid grid, int tag)throws Exception;
public Object receive(Object buff, int source, JGrid grid, int tag) throws Exception;
public int receive(int buff, int source, JGrid grid, int tag) throws Exception;
public int[] receive(int []buff, int source, JGrid grid, int tag) throws Exception;
public float receive(float buff, int source, JGrid grid, int tag) throws Exception;
public float[] receive(float []buff, int source, JGrid grid, int tag) throws Exception;
public double receive(double buff, int source, JGrid grid, int tag) throws Exception;
public double[] receive(double []buff, int source, JGrid grid, int tag) throws Exception;
public char receive(char buff, int source, JGrid grid, int tag) throws Exception;
public char[] receive(char []buff, int source, JGrid grid, int tag) throws Exception;
public boolean receive(boolean buff, int source, JGrid grid, int tag) throws Exception;
public boolean[] receive(boolean []buff, int source, JGrid grid, int tag) throws Exception;
public long receive(long buff, int source, JGrid grid, int tag) throws Exception;
public long[] receive(long []buff, int source, JGrid grid, int tag) throws Exception;
public short receive(short buff, int source, JGrid grid, int tag) throws Exception;
public short[] receive(short []buff, int source, JGrid grid, int tag) throws Exception;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -