com.altair.hwm.comm.loadsubmission.ecompute
Class HWMEComputeJobResInfo

java.lang.Object
  extended by com.altair.hwm.comm.loadsubmission.ecompute.HWMEComputeJobResInfo

public class HWMEComputeJobResInfo
extends java.lang.Object

Title: HWMEComputeJobResInfo

Description: This class contains all information for a job's results.

Company: Altair Engineering, Inc.


Constructor Summary
HWMEComputeJobResInfo()
          Constructor
 
Method Summary
 void AddResult(java.io.File fileRes)
          Add the result file
 java.io.File GetDestDir()
          Get the destination dir where the files are to be placed.
 HWMEComputeException GetException()
          Get the exception object if any error occured while downloading the results.
 int GetJobID()
          Get job id
 int GetNumResultFiles()
          Get the total number of result files receieved
 java.lang.String GetPassword()
          Get the password
 java.io.File GetResultFileAt(int nIndex)
          Get result file at the given index
 java.lang.String GetUserName()
          Get the user name
 void SetDestDir(java.io.File fileDest)
          Set the dir where files should be placed
 void SetJobID(int nJobID)
          Set job id
 void SetPassword(java.lang.String strPwd)
          Set the password
 void SetUserName(java.lang.String strUserName)
          Set the user name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HWMEComputeJobResInfo

public HWMEComputeJobResInfo()
Constructor

Method Detail

SetJobID

public void SetJobID(int nJobID)
Set job id

Parameters:
nJobID - The job id

GetJobID

public int GetJobID()
Get job id

Returns:
int The job id

SetUserName

public void SetUserName(java.lang.String strUserName)
Set the user name

Parameters:
strUserName - The user name

GetUserName

public java.lang.String GetUserName()
Get the user name

Returns:
String The user name

SetPassword

public void SetPassword(java.lang.String strPwd)
Set the password

Parameters:
strPwd - The password for the user

GetPassword

public java.lang.String GetPassword()
Get the password

Returns:
String The password

SetDestDir

public void SetDestDir(java.io.File fileDest)
Set the dir where files should be placed

Parameters:
fileDest - The destination directory for result files

GetDestDir

public java.io.File GetDestDir()
Get the destination dir where the files are to be placed.

Returns:
File The destination directory

AddResult

public void AddResult(java.io.File fileRes)
Add the result file

Parameters:
fileRes - The result file

GetResultFileAt

public java.io.File GetResultFileAt(int nIndex)
                             throws java.lang.Exception
Get result file at the given index

Parameters:
int - The index at which the result file should be returned.
Returns:
File the result file at the given index
Throws:
java.lang.Exception

GetNumResultFiles

public int GetNumResultFiles()
Get the total number of result files receieved

Returns:
int The total number of result files retrieved..

GetException

public HWMEComputeException GetException()
Get the exception object if any error occured while downloading the results.

Returns:
HWMEComputeException The exception object. Can be null if no exception occured.