package org.cipres.kepler.registry; import java.io.File; public class ActorInfo { private String actorName; private String appName; private String appPath; private String guiXmlFilename; private String stdOutErrorPrefix; private String output_param_name; public ActorInfo(){ } /** * @return the application path name */ public String getAppPath() { return this.appPath; } public void setAppPath(String pathName) { if (pathName != null) { File f = new File(pathName); if(f.exists()) { this.appPath = f.getAbsolutePath(); return; } } this.appPath = null; } /** * @return the directory containing the application */ public String getWorkingDir() { if (this.appPath != null) { File f = new File(this.appPath); if(f.exists()) return f.getParent(); } return null; } public String getGuiXmlFile(){ if(this.guiXmlFilename==null){ return null; } return (Globals.getInstance().getGuiXmlDir() + this.guiXmlFilename); } /** * @return Returns the actorName. */ public String getActorName() { return actorName; } /** * @param actorName The actorName to set. */ public void setActorName(String actorName) { this.actorName = actorName; } /** * @return Returns the appName. */ public String getAppName() { return appName; } /** * @param appName The appName to set. */ public void setAppName(String appName) { this.appName = appName; } /** * @return Returns the guiXmlFilePath. */ public String getGuiXmlFilename() { return guiXmlFilename; } /** * @param guiXmlFilePath The guiXmlFilePath to set. */ public void setGuiXmlFilename(String guiXmlFilePath) { this.guiXmlFilename = guiXmlFilePath; } /** * @return Returns the output_param_name. */ public String getOutput_param_name() { return output_param_name; } /** * @param output_param_name The output_param_name to set. */ public void setOutput_param_name(String output_param_name) { this.output_param_name = output_param_name; } /** * @return Returns the stdOutErrorPrefix. */ public String getStdOutErrorPrefix() { return stdOutErrorPrefix; } /** * @param stdOutErrorPrefix The stdOutErrorPrefix to set. */ public void setStdOutErrorPrefix(String stdOutErrorPrefix) { this.stdOutErrorPrefix = stdOutErrorPrefix; } }