|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ConForM.CoopnTools.CoKer.CoopnEnvMgr
Management of CO-OPN tools environments. This class allows to create new environments, to initialise them according to either the command line or an apposite display, and to print the help text.
ProjectEnv
Field Summary | |
protected boolean |
atLeastOneModule
|
protected boolean |
atMostOneModule
|
protected CoopnEnv |
env
|
protected java.io.PrintWriter |
errStream
|
protected boolean |
noModules
|
Constructor Summary | |
CoopnEnvMgr(CoopnEnv env)
Creates a new environment manager based on an existing environment. |
|
CoopnEnvMgr(CoopnUser name)
Creates a new environment manager, along with a new environment. |
|
CoopnEnvMgr(java.lang.String name)
Creates a new environment manager, along with a new environment. |
Method Summary | |
protected void |
addOption(CoopnOption option)
|
void |
checkEnvForModuleNumber(CoopnEnv env)
Check the environment consistency with regards to the asked module number in this environment manager. |
protected CoopnEnv |
createEnvFromName(java.lang.String name)
|
protected CoopnEnv |
createEnvFromUser(CoopnUser name)
|
CoopnEnv |
getEnv()
Returns the associated environment. |
void |
helpCoopnTools(boolean error)
Prints an help text. |
void |
initCoopnTools(CoopnEnv env)
Initialise the environment of a CoopnTool. |
void |
initCoopnTools(java.lang.String[] args)
Initialise the environment of a CoopnTool. |
void |
modifyEnv()
Modify the environment of a CoopnTool. |
protected boolean |
updateEnv(java.util.Map decodedOptions)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected CoopnEnv env
protected java.io.PrintWriter errStream
protected boolean noModules
protected boolean atMostOneModule
protected boolean atLeastOneModule
Constructor Detail |
public CoopnEnvMgr(java.lang.String name) throws CoopnEnvException
name
- the tool nameCoopnEnvException
- error during the creation of the manager.
In this case, the error
stream is appended with the descriptions of
the errors.public CoopnEnvMgr(CoopnUser name) throws CoopnEnvException
name
- the user nameCoopnEnvException
- error during the creation of the manager.
In this case, the error
stream is appended with the descriptions of
the errors.public CoopnEnvMgr(CoopnEnv env) throws CoopnEnvException
env
- an environment used as the base of the new oneCoopnEnvException
- error during the creation of the manager.
In this case, the error
stream is appended with the descriptions of
the errors.Method Detail |
public CoopnEnv getEnv() throws CoopnEnvException
CoopnEnvException
- error during the creation of the manager.
In this case, the error
stream is appended with the descriptions of
the errors.public void initCoopnTools(java.lang.String[] args) throws CoopnEnvException
args
- the command lineCoopnEnvException
- one or more errors occured during the initialisation
of the environment. In this case, the error
stream is appended with the descriptions of
the errors.public void initCoopnTools(CoopnEnv env) throws CoopnEnvException
env
- the existing environmentCoopnEnvException
- one or more errors occured during the initialisation
of the environment. In this case, the error
stream is appended with the descriptions of
the errors.public void modifyEnv()
env
- the existing environmentpublic void checkEnvForModuleNumber(CoopnEnv env) throws CoopnEnvException
env
- the environment to checkCoopnEnvException
- inconsistency.public void helpCoopnTools(boolean error)
error
- uses error output instead of env.outprotected CoopnEnv createEnvFromName(java.lang.String name)
protected CoopnEnv createEnvFromUser(CoopnUser name)
protected final void addOption(CoopnOption option)
protected boolean updateEnv(java.util.Map decodedOptions)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |