slog_tasklabel.java
来自「MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程」· Java 代码 · 共 52 行
JAVA
52 行
import java.io.*;public class SLOG_tasklabel implements Serializable{ public short node; public byte cpu; public int thread; public SLOG_tasklabel() { node = SLOG_Const.INVALID_short; cpu = SLOG_Const.INVALID_byte; thread = SLOG_Const.INVALID_int; } public SLOG_tasklabel( short in_node_id, byte in_cpu_id, int in_thread_id ) { node = in_node_id; cpu = in_cpu_id; thread = in_thread_id; } public SLOG_tasklabel( DataInputStream data_istm ) throws IOException { this.ReadFromDataStream( data_istm ); } public void ReadFromDataStream( DataInputStream data_istm ) throws IOException { node = data_istm.readShort(); cpu = data_istm.readByte(); thread = data_istm.readInt(); } public final int NbytesInFile() {// return( 2 + 1 + 4 ); return( 7 ); } public String toString() { StringBuffer representation = new StringBuffer(); representation.append( "( " + node + " " + cpu + " " + thread + " )" ); return( representation.toString() ); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?