Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

alma.acs.commandcenter.app.CommandCenterLogic Class Reference

List of all members.

Classes

class  DeploymentTreeControllerImpl
class  MyProjectRunModel
class  StartupOptions

Public Member Functions

void prepare (StartupOptions startupOptions)
void go ()
void stop ()
void exit (final int code)
String projectCreatorId ()
String version ()
URL findResource (String name)
URL findResource (String name, String where)
HelpSet getHelpSet ()
void installExtraTools (URL url) throws Exception
void removeExtraTools ()
void loadBuiltinTools (URL url) throws Exception
AcsCommandCenterProject createProject ()
void loadProject (File f)
AcsCommandCenterProject readProject (File f) throws FileNotFoundException, MarshalException, ValidationException, IOException
void writeProject (AcsCommandCenterProject p, File f) throws IOException, MarshalException, ValidationException
void moreContainers ()
void lessContainers ()
ContainerT removeContainer (int index)
void insertContainer (ContainerT cont, int index)
Map< String, Object >[] giveVariableMapsForGui ()
void handleUnresolvableVariable (String name)
List< String > giveProjectVariableNames ()
void runBackground (Runnable r)

Public Attributes

AcsCommandCenterProject project
MyProjectRunModel model
StartupOptions startupOptions
ExecuteServices executeServices
ExecuteManager executeManager
ExecuteContainer executeContainer
ExecuteAcs executeAcs
ExecuteTools executeTools
Firestarter firestarter
URL latestBuiltinToolsUrl
URL currentExtraToolsUrl
DeploymentTreeControllerImpl deploymentTreeControllerImpl

Protected Member Functions

void installExtraTools (InputStream f) throws Exception
void loadBuiltinTools (InputStream f) throws Exception

Protected Attributes

CommandCenterGui gui
ProjectMaker projectMaker
AcsLogger log
String projectCreatorId
String version = null
final String HELPSET_NAME = "AcsCommandCenter.hs"
HelpSet helpSet

Detailed Description

The business logic for Command Center.


Member Function Documentation

AcsCommandCenterProject alma.acs.commandcenter.app.CommandCenterLogic.createProject (  ) 
void alma.acs.commandcenter.app.CommandCenterLogic.exit ( final int  code  ) 

System.exit() can be prevented by setting the boolean flag to false through the corresponding command line switch.

References alma.acs.commandcenter.app.CommandCenterLogic.log, and alma.acs.commandcenter.app.CommandCenterLogic.startupOptions.

Referenced by alma.acs.commandcenter.app.CommandCenterLogic.prepare(), and alma.acs.commandcenter.app.CommandCenterLogic.stop().

URL alma.acs.commandcenter.app.CommandCenterLogic.findResource ( String  name,
String  where 
)

Finds a resource in the specified location.

References alma.acs.commandcenter.app.CommandCenterLogic.log.

URL alma.acs.commandcenter.app.CommandCenterLogic.findResource ( String  name  ) 
HelpSet alma.acs.commandcenter.app.CommandCenterLogic.getHelpSet (  ) 
List<String> alma.acs.commandcenter.app.CommandCenterLogic.giveProjectVariableNames (  ) 

For later use by whoever, could currently as well be "protected"

References alma.acs.commandcenter.app.CommandCenterLogic.project.

Referenced by alma.acs.commandcenter.app.CommandCenterLogic.giveVariableMapsForGui().

Map<String, Object> [] alma.acs.commandcenter.app.CommandCenterLogic.giveVariableMapsForGui (  ) 
void alma.acs.commandcenter.app.CommandCenterLogic.go (  ) 
void alma.acs.commandcenter.app.CommandCenterLogic.handleUnresolvableVariable ( String  name  ) 
void alma.acs.commandcenter.app.CommandCenterLogic.insertContainer ( ContainerT  cont,
int  index 
)

Inserts a container into the project at the given index, that is, the container will afterwards have the index index.

References alma.acs.commandcenter.app.CommandCenterLogic.project.

void alma.acs.commandcenter.app.CommandCenterLogic.installExtraTools ( URL  url  )  throws Exception
void alma.acs.commandcenter.app.CommandCenterLogic.installExtraTools ( InputStream  f  )  throws Exception [protected]
void alma.acs.commandcenter.app.CommandCenterLogic.lessContainers (  ) 
void alma.acs.commandcenter.app.CommandCenterLogic.loadBuiltinTools ( URL  url  )  throws Exception
void alma.acs.commandcenter.app.CommandCenterLogic.loadBuiltinTools ( InputStream  f  )  throws Exception [protected]

internal method

void alma.acs.commandcenter.app.CommandCenterLogic.loadProject ( File  f  ) 
void alma.acs.commandcenter.app.CommandCenterLogic.moreContainers (  ) 
void alma.acs.commandcenter.app.CommandCenterLogic.prepare ( StartupOptions  startupOptions  ) 
AcsCommandCenterProject alma.acs.commandcenter.app.CommandCenterLogic.readProject ( File  f  )  throws FileNotFoundException, MarshalException, ValidationException, IOException
ContainerT alma.acs.commandcenter.app.CommandCenterLogic.removeContainer ( int  index  ) 

Removes a container from the project.

Returns:
the removed container, or null if index invalid

References alma.acs.commandcenter.app.CommandCenterLogic.project.

void alma.acs.commandcenter.app.CommandCenterLogic.removeExtraTools (  ) 
void alma.acs.commandcenter.app.CommandCenterLogic.runBackground ( Runnable  r  ) 
void alma.acs.commandcenter.app.CommandCenterLogic.stop (  ) 

Returns the first non-empty line of file "src/VERSION", or the empty string in any erroneous case.

Returns:
a valid version info or ""

References alma.acs.commandcenter.app.CommandCenterLogic.version.

Referenced by alma.acs.commandcenter.app.CommandCenterLogic.prepare().

void alma.acs.commandcenter.app.CommandCenterLogic.writeProject ( AcsCommandCenterProject  p,
File  f 
) throws IOException, MarshalException, ValidationException

Member Data Documentation

final String alma.acs.commandcenter.app.CommandCenterLogic.HELPSET_NAME = "AcsCommandCenter.hs" [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties