Package xal.app.launcher
Class App
- java.lang.Object
-
- xal.app.launcher.App
-
- All Implemented Interfaces:
Comparable<App>
public class App extends Object implements Comparable<App>
App is a delegate for an XAL application to run. The XAL application should be available as an executable script. The App instance includes the path to the executable and notes to display describing the application. The instance is capable of launching the executable.- Author:
- tap
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(App app)Compare two instances.booleanexists()Test if the executable existsStringgetAuthor()Get the authors of this applicationList<String>getCommands()get the command to run the application in a local environmentFilegetFile()get the file to which the app refersStringgetLabel()Get the label to display identifying this applicationDategetLastLaunchTime()get the time of the last run for this appStringgetNotes()Get the notes associated with the applicationStringgetPath()Get the path to the applicationRulegetRule()get the ruleStringgetVersion()Get the version of this applicationvoidsetLastLaunchTime(Date runTime)set the last run timeStringtoString()Get the string representation of this instance
-
-
-
Method Detail
-
getRule
public Rule getRule()
get the rule
-
getCommands
public List<String> getCommands()
get the command to run the application in a local environment
-
getFile
public File getFile()
get the file to which the app refers
-
getPath
public String getPath()
Get the path to the application- Returns:
- the path to the application
-
getLabel
public String getLabel()
Get the label to display identifying this application- Returns:
- the short name of the file path of the executable
-
getVersion
public String getVersion()
Get the version of this application- Returns:
- the application version
-
getAuthor
public String getAuthor()
Get the authors of this application- Returns:
- authors of the application
-
getLastLaunchTime
public Date getLastLaunchTime()
get the time of the last run for this app
-
setLastLaunchTime
public void setLastLaunchTime(Date runTime)
set the last run time
-
exists
public boolean exists()
Test if the executable exists- Returns:
- true if the executable exists and false if not
-
getNotes
public String getNotes()
Get the notes associated with the application- Returns:
- The notes associated with the application
-
toString
public String toString()
Get the string representation of this instance- Overrides:
toStringin classObject- Returns:
- the label
- See Also:
getLabel()
-
compareTo
public int compareTo(App app)
Compare two instances. The two instances are compared by label and the comparison is based on alphebetical sorting.- Specified by:
compareToin interfaceComparable<App>- Parameters:
app- the other App against which to compare- Returns:
- a positive number if this comes after the argument, negative if this comes before and 0 if they are equal
- See Also:
getLabel()
-
-