001    package cnslab.cnsnetwork;
002    
003    import jpvm.*;
004
005    /***********************************************************************
006    * A class to store all the necessary information about Java Parallel
007    * virtual machine.
008    * 
009    * @version
010    *   $Date: 2012-08-04 13:43:22 -0500 (Sat, 04 Aug 2012) $
011    *   $Rev: 104 $
012    *   $Author: croft $
013    * @author
014    *   Yi Dong
015    * @author
016    *   David Wallace Croft
017    ***********************************************************************/
018    public final class  JpvmInfo
019    ////////////////////////////////////////////////////////////////////////
020    ////////////////////////////////////////////////////////////////////////
021    {
022
023    /** Jpvm Environment object */
024    public jpvmEnvironment  jpvm;
025
026    /** Array of task ids */
027    public jpvmTaskId [ ]  tids;
028
029    /** The end neuron index for each of the net hosts */
030    public int [ ]  endIndex;
031
032    /** total number of trial hosts */
033    public int  numTasks;
034
035    /** tid of current machine */
036    public jpvmTaskId  myJpvmTaskId;
037
038    /** tid of parent machine, trial Host id. */
039    public jpvmTaskId  parentJpvmTaskId;
040
041    /** index of this machine(Nethost) in an array of ids */
042    public int  idIndex;
043  
044    ////////////////////////////////////////////////////////////////////////
045    // constructor methods
046    ////////////////////////////////////////////////////////////////////////
047    
048    public  JpvmInfo (
049      final int                  idIndex,
050      final jpvmEnvironment      jpvm,
051      final jpvmTaskId           mytid,
052      final int                  numTasks,
053      final jpvmTaskId           parent,
054      final jpvm.jpvmTaskId [ ]  tids,
055      final int [ ]              endIndex )
056    ////////////////////////////////////////////////////////////////////////
057    {
058      this.idIndex = idIndex;
059      
060      this.jpvm = jpvm;
061      
062      this.myJpvmTaskId = mytid;
063      
064      this.numTasks = numTasks;
065      
066      this.parentJpvmTaskId = parent;
067      
068      this.tids = tids;
069      
070      this.endIndex = endIndex;
071    }
072
073    public  JpvmInfo ( )
074    ////////////////////////////////////////////////////////////////////////
075    {
076      //
077    }
078
079    ////////////////////////////////////////////////////////////////////////
080    ////////////////////////////////////////////////////////////////////////
081    }