org.hawk.module.script
Class ScriptUsage

java.lang.Object
  extended by org.hawk.module.script.ScriptUsage

public class ScriptUsage
extends java.lang.Object

Defines the various modes which helps hawk script developer

See Also:
BuildModeEnum

Method Summary
 BuildModeEnum getBuildMode()
          getter for BuildModeEnum
 java.lang.String getHawkScript()
          Returns hawkScript file path
static ScriptUsage getInstance()
          returns the singleton instance
 void helpUser()
          shows the various mode of running the run-perf-hawk.sh
 boolean parseArguments(java.lang.String[] args)
          Parses the input arguments to find the mode BuildModeEnum
 void setBuildMode(BuildModeEnum buildMode)
          getter for BuildModeEnum
 void setHawkScript(java.lang.String hawkScript)
          Setter hawkScript file path
 void showTasks()
          displays all the tasks implemented by the user on the console.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ScriptUsage getInstance()
returns the singleton instance

Returns:
the singleton instance

getHawkScript

public java.lang.String getHawkScript()
Returns hawkScript file path

Returns:
hawkScript file path

setHawkScript

public void setHawkScript(java.lang.String hawkScript)
Setter hawkScript file path

Parameters:
hawkScript - sets the hawk script file path

helpUser

public void helpUser()
shows the various mode of running the run-perf-hawk.sh


getBuildMode

public BuildModeEnum getBuildMode()
getter for BuildModeEnum

Returns:
getter for BuildModeEnum

setBuildMode

public void setBuildMode(BuildModeEnum buildMode)
getter for BuildModeEnum

Parameters:
buildMode - setter for BuildModeEnum

parseArguments

public boolean parseArguments(java.lang.String[] args)
                       throws HawkException
Parses the input arguments to find the mode BuildModeEnum

Parameters:
args - array conataing user options
Returns:
true on success false on failure
Throws:
HawkException

showTasks

public void showTasks()
displays all the tasks implemented by the user on the console.