slog_direntry.java
来自「MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程」· Java 代码 · 共 53 行
JAVA
53 行
import java.io.*;public class SLOG_DirEntry implements Serializable{ public long fptr2framehdr; public double starttime; public double endtime; public SLOG_DirEntry() { fptr2framehdr = SLOG_Const.NULL_fptr; starttime = SLOG_Const.INVALID_double; endtime = SLOG_Const.INVALID_double; } public SLOG_DirEntry( long in_fptr, double in_stime, double in_etime ) { fptr2framehdr = in_fptr; starttime = in_stime; endtime = in_etime; } public SLOG_DirEntry( RandomAccessFile file_stm ) throws IOException { this.ReadFromRandomFile( file_stm ); } public void ReadFromRandomFile( RandomAccessFile file_stm ) throws IOException { fptr2framehdr = file_stm.readLong(); starttime = file_stm.readDouble(); endtime = file_stm.readDouble(); } public void WriteToRandomFile( RandomAccessFile file_stm ) throws IOException { file_stm.writeLong( this.fptr2framehdr ); file_stm.writeDouble( this.starttime ); file_stm.writeDouble( this.endtime ); } public String toString() { StringBuffer representation = new StringBuffer(); representation.append( fptr2framehdr + " | " ); representation.append( starttime + " -> " + endtime ); return( representation.toString() ); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?