gov.bnl.star.offline.scheduler.request.rdl
Class Application

java.lang.Object
  extended by gov.bnl.star.offline.scheduler.request.rdl.Application

public class Application
extends java.lang.Object

Class representing the Application request element

Version:
$Revision: 1.4 $ $Date: 2006/11/21 00:41:30 $
Author:
paulh

Constructor Summary
Application()
           
Application(java.lang.String type, java.lang.String name, java.lang.String version)
           
 
Method Summary
 boolean getIsDefault()
          Returns true is this is the default app
 java.lang.String getName()
          Returns the name of the app (ie.
 java.lang.String getPath()
          Returns the path to the program
 Task getType()
          Returns a class of the same type as the task (ie RootTask, JavaTask, ScriptTask)
 java.lang.String getVersion()
          sets the version of the app (ie.
 void makeDefault()
          Calling this makes this app the defailt if no other matching apps can be found this is the one that will be used
 void setIsDefault(boolean isDefault)
          If this is set to true, the will be the default picked if no other app can be found
 void setName(java.lang.String name)
          set the name of the app (ie.
 void setPath(java.lang.String path)
          Sets the hard pther the the program
 void setType(Task type)
          Set the type of the application by giving it TaskClass of the same type
 void setVersion(java.lang.String version)
          So reformating will take place.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Application

public Application()

Application

public Application(java.lang.String type,
                   java.lang.String name,
                   java.lang.String version)
Method Detail

getName

public java.lang.String getName()
Returns the name of the app (ie. java root4star root csh ect.)


getVersion

public java.lang.String getVersion()
sets the version of the app (ie. 1.7.5)


setName

public void setName(java.lang.String name)
set the name of the app (ie. java root4star root csh ect.), Users must still be careful with the case as I can't make this all the same


setVersion

public void setVersion(java.lang.String version)
So reformating will take place. If the version was set to " 1-5 /0 a " (worst possible formatting) this will the getVersion return "1.5.0A"


setIsDefault

public void setIsDefault(boolean isDefault)
If this is set to true, the will be the default picked if no other app can be found


getIsDefault

public boolean getIsDefault()
Returns true is this is the default app


makeDefault

public void makeDefault()
Calling this makes this app the defailt if no other matching apps can be found this is the one that will be used


setPath

public void setPath(java.lang.String path)
Sets the hard pther the the program


getPath

public java.lang.String getPath()
Returns the path to the program


setType

public void setType(Task type)
Set the type of the application by giving it TaskClass of the same type


getType

public Task getType()
Returns a class of the same type as the task (ie RootTask, JavaTask, ScriptTask)



Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.