amisample
Class ASMain

java.lang.Object
  |
  +--amisample.ASMain
All Implemented Interfaces:
ActionListener, EventListener

public class ASMain
extends Object
implements ActionListener

AMISample main class

Version:
1.0
Author:
Bertrand Florat

Field Summary
private static ArrayList alList
          Lists we are subscribed
(package private)  ASMainScreen ams
           
(package private)  ASWelcome asWelcome
           
private static Hashtable hParam
          Own parameters ( PU, IP, AL ...
static int iOport
           
private static int iPort
          AMISample port
(package private)  JFrame jframe
           
(package private)  JPanel jpMain
           
private static int PORT
          Default port
 
Constructor Summary
ASMain()
           
 
Method Summary
 void actionPerformed(ActionEvent ae)
          Clic on OK button
(package private) static void exit()
          called when exiting AS
(package private) static ArrayList getLists()
          Returns lists
(package private) static String getParam(String sParam)
          Returns the given parameter
static int getPort()
          Returns the iPort.
protected  void init()
          Initialize amisample protocol
static void main(String[] args)
           
(package private) static void removeList(String sList)
          Remove a list
static void setPort(int iPort)
          Sets the iPort.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

hParam

private static Hashtable hParam
Own parameters ( PU, IP, AL ...

alList

private static ArrayList alList
Lists we are subscribed

iPort

private static int iPort
AMISample port

PORT

private static final int PORT
Default port

iOport

public static int iOport

jframe

JFrame jframe

jpMain

JPanel jpMain

asWelcome

ASWelcome asWelcome

ams

ASMainScreen ams
Constructor Detail

ASMain

public ASMain()
Method Detail

main

public static void main(String[] args)
                 throws Exception

init

protected void init()
             throws ASException
Initialize amisample protocol

actionPerformed

public void actionPerformed(ActionEvent ae)
Clic on OK button
Specified by:
actionPerformed in interface ActionListener

getParam

static String getParam(String sParam)
Returns the given parameter

getLists

static ArrayList getLists()
Returns lists

removeList

static void removeList(String sList)
Remove a list

exit

static void exit()
called when exiting AS

getPort

public static int getPort()
Returns the iPort.
Returns:
int

setPort

public static void setPort(int iPort)
Sets the iPort.
Parameters:
iPort - The iPort to set