arrowinfo.java

来自「MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程」· Java 代码 · 共 73 行

JAVA
73
字号
import java.util.Vector;//This class stores information about a messagepublic class ArrowInfo extends Info{    StateGroupLabel  begGroupID;     // timelines window's Y axis label (begin)    StateGroupLabel  endGroupID;     // timelines window's Y axis label ( end )    iarray           args;           // array of integer arguments    RecDef           arrowDef;       // record display description      //Constructor for the object representing a message.    //origID  = Task Id of the StateGroup where the message originates    //destID  = Task Id of the StateGroup where the message ends.    //begtime = The time at which the message originates.    public ArrowInfo( StateGroupLabel origID,  StateGroupLabel destID,                       double          begtime, double          endtime )    {        super ();        begGroupID = new StateGroupLabel( origID );        endGroupID = new StateGroupLabel( destID );        begT       = begtime;        endT       = endtime;        lenT       = endT - begT;    }      public ArrowInfo( final SLOG_Irec_min     irec_min,                      final SLOG_Irec_vtrargs irec_vtrargs,                      final SLOG_ThreadInfos  thread_infos,                      final int               view_idx,                      final boolean           forward )    {        if ( forward ) {            begT       = irec_min.starttime;            lenT       = irec_min.duration;            endT       = begT + lenT;            begGroupID = new StateGroupLabel( irec_min.origID,                                              thread_infos, view_idx );            endGroupID = new StateGroupLabel( irec_min.destID,                                              thread_infos, view_idx );        }        else {            endT       = irec_min.starttime;            lenT       = irec_min.duration;            begT       = endT + lenT;            begGroupID = new StateGroupLabel( irec_min.destID,                                              thread_infos, view_idx );            endGroupID = new StateGroupLabel( irec_min.origID,                                              thread_infos, view_idx );        }        args    = new iarray( ( (SLOG_Irec_args) irec_vtrargs.firstElement() )                              .elems );        blink      = false;    }    public void SetArrowDefLink( RecDef in_arrowdef )    {        arrowDef = in_arrowdef;    }    public String toString () {        return ("ArrowInfo=[begGroupID=" + begGroupID                          + ", endGroupID=" + endGroupID	                  + ", begT=" + begT                          + ", endT=" + endT                          + ", name=" + arrowDef.description                           + ", args=" + args + " ]" );    }} 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?