ami
Class AMIMain

java.lang.Object
  |
  +--ami.AMIMain
All Implemented Interfaces:
ActionListener, EventListener, KeyListener

public final class AMIMain
extends Object
implements ActionListener, KeyListener

AMI main class

Version:
1.0
Author:
Bertrand Florat

Field Summary
private static AMIInputProcessor aip
           
private static AMIInputSpool ais
           
private  AMIInitWizard aiw
           
private static AMILocalParameter alp
           
private static AMIOutputProcessor aop
           
private static AMIOutputSpool aos
           
private  boolean bChangePass
           
private  boolean bForceInstall
           
private  boolean bGo
           
private  boolean bGui
           
private  boolean bOk
           
private  int iTries
           
private  String sAMIPath
           
private  String sAMIPathMethod
          AMIPATH obtention method ( can be "option", "env" or "rcfile"
private  String sDefaultPassphrase
           
private  String sLogOptions
           
private static Vector vCS
           
 
Constructor Summary
AMIMain()
          put your documentation comment here
 
Method Summary
 void actionPerformed(ActionEvent ae)
          put your documentation comment here
private  void askPassphrase()
          Get passphrase to start ami engine, update keys in AMILocalParameter
private static void cleanFiles()
          Called at start and end to clean old out files
(package private)  void createFiles()
          Creates requiered AMI files at installation: - user.xml - descriptions files ( core.ami ) - rt.xml - directory out
static void exit()
          Called to quit properly the AMI engine
private  String getAmipath()
          getAmipath() Used to get AMI working path Due to several path pbms under Windows, we now use the current directory
static AMIOutputProcessor getAop()
          return the AMIOutputProcessor ( entry of queries )
static Vector getVCS()
          get the vCS ( vector of checksums )
private  void graphicalInstall()
          put your documentation comment here
private  boolean importrt(String sPath)
          Method used to import routing table file
 void init(String[] sArgs)
          AMI initialisation
(package private)  boolean isInstalled()
          Return true if we find minimal AMI files ( if AMI looks ok to start )
 void keyPressed(KeyEvent ke)
          put your documentation comment here
 void keyReleased(KeyEvent ke)
          put your documentation comment here
 void keyTyped(KeyEvent ke)
          put your documentation comment here
static void main(String[] sArgs)
          put your documentation comment here
private  Vector optionAnalyse(String[] sArgs)
          Used to analize input options
 void startup()
          AMI startup
private  void textInstall()
          put your documentation comment here
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

sAMIPath

private String sAMIPath

sAMIPathMethod

private String sAMIPathMethod
AMIPATH obtention method ( can be "option", "env" or "rcfile"

sLogOptions

private String sLogOptions

alp

private static AMILocalParameter alp

ais

private static AMIInputSpool ais

aos

private static AMIOutputSpool aos

aip

private static AMIInputProcessor aip

aop

private static AMIOutputProcessor aop

vCS

private static Vector vCS

aiw

private AMIInitWizard aiw

bGo

private boolean bGo

sDefaultPassphrase

private String sDefaultPassphrase

bForceInstall

private boolean bForceInstall

bGui

private boolean bGui

bChangePass

private boolean bChangePass

bOk

private boolean bOk

iTries

private int iTries
Constructor Detail

AMIMain

public AMIMain()
put your documentation comment here
Parameters:
String[] - sArgs
Method Detail

init

public final void init(String[] sArgs)
AMI initialisation

startup

public final void startup()
AMI startup

getAmipath

private String getAmipath()
getAmipath() Used to get AMI working path Due to several path pbms under Windows, we now use the current directory

optionAnalyse

private final Vector optionAnalyse(String[] sArgs)
                            throws AMIException
Used to analize input options
Parameters:
sArgs - Description of Parameter
Returns:
Description of the Returned Value
Throws:
AMIException - Description of Exception

importrt

private boolean importrt(String sPath)
Method used to import routing table file
Parameters:
sPath - Description of Parameter
Returns:
Description of the Returned Value

askPassphrase

private void askPassphrase()
                    throws AMIException
Get passphrase to start ami engine, update keys in AMILocalParameter

getAop

public static final AMIOutputProcessor getAop()
return the AMIOutputProcessor ( entry of queries )
Returns:
The Aop value

getVCS

public static final Vector getVCS()
get the vCS ( vector of checksums )
Returns:
The VCS value

main

public static final void main(String[] sArgs)
put your documentation comment here
Parameters:
sArgs - The command line arguments
Throws:
Exception - Description of Exception

cleanFiles

private static void cleanFiles()
                        throws AMIException
Called at start and end to clean old out files

createFiles

void createFiles()
           throws AMIException
Creates requiered AMI files at installation: - user.xml - descriptions files ( core.ami ) - rt.xml - directory out

exit

public static void exit()
Called to quit properly the AMI engine

isInstalled

boolean isInstalled()
Return true if we find minimal AMI files ( if AMI looks ok to start )

graphicalInstall

private void graphicalInstall()
                       throws Exception
put your documentation comment here
Throws:
Exception -  

textInstall

private void textInstall()
                  throws Exception
put your documentation comment here
Throws:
Exception -  

actionPerformed

public void actionPerformed(ActionEvent ae)
put your documentation comment here
Specified by:
actionPerformed in interface ActionListener
Parameters:
ae -  

keyPressed

public void keyPressed(KeyEvent ke)
put your documentation comment here
Specified by:
keyPressed in interface KeyListener
Parameters:
ke -  

keyReleased

public void keyReleased(KeyEvent ke)
put your documentation comment here
Specified by:
keyReleased in interface KeyListener
Parameters:
ke -  

keyTyped

public void keyTyped(KeyEvent ke)
put your documentation comment here
Specified by:
keyTyped in interface KeyListener
Parameters:
ke -