|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.comm.loadsubmission.jobservices.HWMOptistructJob
public class HWMOptistructJob
Title: HWMOptistructJob Description: Class for Optistruct Job Has methods to update a job id , job status and set command parameters for running this job from a batch file. Supports master deck and include files. Knows about the output directory where results for this job are stored Company: Altair Engineering, Inc.
Constructor Summary | |
---|---|
HWMOptistructJob()
HWMOptistructJob - constructor to create a new optistruct job |
Method Summary | |
---|---|
void |
AddFile(java.io.File solverDeckFile)
Adds a file to this job First file is usually the deck file |
void |
AddJobParams(java.util.Vector vectJobParams)
Adds a vector of job related parameters for the job. |
void |
AddPostProcessingParams(java.util.Vector vectPostParams)
Adds a vector of post processor parameters for the job. |
void |
AddSolverParams(java.util.Vector vectSolverParams)
Adds a vector of solver parameters for the job. |
java.util.Vector |
GetFiles()
Gets deck and include files managed by this job |
java.lang.String |
GetJobCommand()
GetJobCommand - gets the command string to be executed |
java.lang.String |
GetJobID()
GetJobID - returns a String that is the jobID |
int |
GetJobIdAsInt()
GetJobID - get the id of the job |
java.lang.String |
GetJobOutputDir()
GetJobOutputDir - get full path to output directory |
IHWMJobStatus |
GetJobStatus()
GetJobStatus - Gets the job status stored on this job |
java.lang.String |
GetName()
Gets the name of the job. |
java.lang.String |
GetSolverPath()
GetSolverPath - get the solver path for this job |
void |
readExternal(java.io.ObjectInput in)
read the job object from a binary file |
void |
RemoveFile(java.io.File solverDeckFile)
This method removes a solver deck file to a job. |
void |
RemoveJobParams(java.util.Vector vectJobParams)
Removes a vector of job related parameters for the job. |
void |
RemovePostProcessingParams(java.util.Vector vectPostParams)
Removes a vector of post processor parameters for the job. |
void |
RemoveSolverParams(java.util.Vector vectSolverParams)
Removes a vector of solver parameters from the job. |
void |
SetAsMaster(java.io.File solverDeckFile)
Sets the specified deck file as the master file. |
void |
SetCommandParameters()
Set the command parameters on the job |
void |
SetJobID(java.lang.String strJobID)
SetJobID - sets job id as a int on the job object |
void |
SetName(java.lang.String strName)
Sets the name of the Job instance. |
void |
SetOutputDir(java.io.File jobDir)
Set the results output directory for this job |
void |
SetSolverPath(java.lang.String solverpath)
SetSolverPath - set the full path to optistruct Solver |
void |
UpdateJobStatus(IHWMJobStatus jobStatus)
UpdateJobStatus - updates the status on this job |
void |
writeExternal(java.io.ObjectOutput out)
Writes the job object to a binary file Called by HWMProcessOutputReader |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HWMOptistructJob()
Method Detail |
---|
public int GetJobIdAsInt()
- public java.lang.String GetJobOutputDir()
public void SetJobID(java.lang.String strJobID)
strJobID
- - a job ID as Stringpublic void SetOutputDir(java.io.File jobDir)
jobDir
- - job output directory where results are to be storedpublic java.lang.String GetJobID()
GetJobID
in interface IHWMJob
public void AddFile(java.io.File solverDeckFile)
AddFile
in interface IHWMJob
solverDeckFile
- public java.util.Vector GetFiles()
public void RemoveFile(java.io.File solverDeckFile) throws java.lang.Exception
IHWMJob
RemoveFile
in interface IHWMJob
solverDeckFile
- The solver deck file to be removed from the job.
java.lang.Exception
public void SetAsMaster(java.io.File solverDeckFile) throws java.lang.Exception
IHWMJob
SetAsMaster
in interface IHWMJob
solverDeckFile
- The specified deck file to be set as the master file.
java.lang.Exception
public void AddSolverParams(java.util.Vector vectSolverParams) throws java.lang.Exception
IHWMJob
AddSolverParams
in interface IHWMJob
vectSolverParams
- A vector of solver parameters to be added
for the job.
java.lang.Exception
public void RemoveSolverParams(java.util.Vector vectSolverParams) throws java.lang.Exception
IHWMJob
RemoveSolverParams
in interface IHWMJob
vectSolverParams
- A vector of solver parameters to be removed
from the job.
java.lang.Exception
public void AddJobParams(java.util.Vector vectJobParams) throws java.lang.Exception
IHWMJob
AddJobParams
in interface IHWMJob
vectJobParams
- A vector of job parameters to be added
for the job.
java.lang.Exception
public void RemoveJobParams(java.util.Vector vectJobParams) throws java.lang.Exception
IHWMJob
RemoveJobParams
in interface IHWMJob
vectJobParams
- A vector of job parameters to be removed
from the job.
java.lang.Exception
public void AddPostProcessingParams(java.util.Vector vectPostParams) throws java.lang.Exception
IHWMJob
AddPostProcessingParams
in interface IHWMJob
vectPostParams
- A vector of post processor parameters to be added
for the job.
java.lang.Exception
public void RemovePostProcessingParams(java.util.Vector vectPostParams) throws java.lang.Exception
IHWMJob
RemovePostProcessingParams
in interface IHWMJob
vectPostParams
- A vector of post processor parameters to be removed
from the job.
java.lang.Exception
public IHWMJobStatus GetJobStatus() throws java.lang.Exception
GetJobStatus
in interface IHWMJob
java.lang.Exception
public void UpdateJobStatus(IHWMJobStatus jobStatus)
jobStatus
- public void SetName(java.lang.String strName) throws java.lang.Exception
IHWMJob
SetName
in interface IHWMJob
strName
- The name of the job to be set.
java.lang.Exception
public java.lang.String GetName() throws java.lang.Exception
IHWMJob
GetName
in interface IHWMJob
java.lang.Exception
public void SetCommandParameters() throws java.lang.Exception
strOptistructPath
- - full path to optistructstrDeckFile
- - the deck file to be solvedoutFile
- - output directory where results are stored
java.lang.Exception
public java.lang.String GetJobCommand()
public void SetSolverPath(java.lang.String solverpath)
path
- - path to batch file that invokes the solverpublic java.lang.String GetSolverPath()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
-
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
-
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |