MicroTester.v2_0
Class MicroTester1

java.lang.Object
  |
  +--MicroTAPAS.MicroActor
        |
        +--MicroTAPAS.MicroApplicationActor
              |
              +--MicroTAPAS.mobility.MobilityApplicationActor
                    |
                    +--MicroTester.v2_0.MicroTesterBase
                          |
                          +--MicroTester.v2_0.MicroTester1
All Implemented Interfaces:
ControlInterface, MicroActorInterface, java.io.Serializable

public class MicroTester1
extends MicroTesterBase

See Also:
Serialized Form

Field Summary
 TesterInterface ai
          Instance of own interface
protected  java.awt.Color bgColor
          Variable to hold the background color of the main application window.
static boolean DEBUG
          Determines whether debug info to be sent to debug-server
 RoleSession initialRoleSession
          The initial role session created when actor is created.
protected  java.lang.String title
          Variable to hold the title of the main application window.
 
Fields inherited from class MicroTAPAS.mobility.MobilityApplicationActor
doRegister, isRegistered
 
Fields inherited from class MicroTAPAS.MicroActor
bf, context, debug, fh, properties
 
Constructor Summary
MicroTester1()
          Constructor
 
Method Summary
 void closeWindow()
          Close the application window
 void createInterface(java.lang.Object pActorInterface)
          Re-constructs an actor based on the information stored in its interface.
 java.lang.Object getInterface()
          Constructs an interface of this this actor, wherein all essential inforamtion about the actor should be stored.
 RequestResult mobilityActorEntry(RequestPars rp)
          Common entry point for all mobile application actors
 void term()
          Gives this Actor instance a chance to clean up when the DebugWindow is closed; should only be called if no more roleSessions in RoleSessionCollection (except for ActorBehaviourChange).
 RequestResult testerControl(java.lang.String cmd, java.lang.String[] args, boolean expectSuccess)
          Method to control this Tester application.
 
Methods inherited from class MicroTAPAS.mobility.MobilityApplicationActor
actorChangeBehaviour, actorChangeBehaviour, actorMove, actorRegister, actorRegisterCancel, applicationActorEntry, cleanUp, control, getMAGAI, getMMGAI, help, init, status
 
Methods inherited from class MicroTAPAS.MicroApplicationActor
actorBehaviourPlugIn, actorBehaviourPlugOut, ActorCapabilities, actorEntry, ActorPlay, actorPlugIn, actorPlugOut, anyOtherRequestType, closeBF, playChangesPlugIn, playPlugIn, playPlugOut, requestToActor, RoleSessionAction, subscribeCancel, subscribeReport, subscribeRequest
 
Methods inherited from class MicroTAPAS.MicroActor
findRoleSession, getGAI, start, terminalMove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
Determines whether debug info to be sent to debug-server

See Also:
Constant Field Values

ai

public TesterInterface ai
Instance of own interface


initialRoleSession

public RoleSession initialRoleSession
The initial role session created when actor is created. Used when terminating.


title

protected java.lang.String title
Variable to hold the title of the main application window.


bgColor

protected java.awt.Color bgColor
Variable to hold the background color of the main application window.

Constructor Detail

MicroTester1

public MicroTester1()
Constructor

Method Detail

mobilityActorEntry

public RequestResult mobilityActorEntry(RequestPars rp)
                                 throws java.lang.Exception
Common entry point for all mobile application actors

Specified by:
mobilityActorEntry in class MobilityApplicationActor
Parameters:
rp - TAPAS style request
Returns:
TAPAS style result
java.lang.Exception

testerControl

public RequestResult testerControl(java.lang.String cmd,
                                   java.lang.String[] args,
                                   boolean expectSuccess)
Method to control this Tester application. Input from a dialog window may trigger action. Input from a list of preselected actions is also a possibility.

Parameters:
cmd - The TAPAS command to be executed.
args - Command parameters (if any).
Returns:
The result of the operation.

closeWindow

public void closeWindow()
Close the application window


term

public void term()
Gives this Actor instance a chance to clean up when the DebugWindow is closed; should only be called if no more roleSessions in RoleSessionCollection (except for ActorBehaviourChange).

Specified by:
term in interface MicroActorInterface
Overrides:
term in class MobilityApplicationActor

createInterface

public void createInterface(java.lang.Object pActorInterface)
Re-constructs an actor based on the information stored in its interface.

Specified by:
createInterface in class MobilityApplicationActor

getInterface

public java.lang.Object getInterface()
Constructs an interface of this this actor, wherein all essential inforamtion about the actor should be stored.

Specified by:
getInterface in class MobilityApplicationActor
Returns:
This actor's interface.


The Telematics Architecture for Plug-and-Play Systems (TAPAS) is a research project undertaken by the Norwegian University of Science and Technology's Telematics department which aims at developing an architecture for network-based service systems with a) flexibility and adaptability, b) robustness and survivability, and c) QoS awareness and resource control.

More information can be found at the project's homepage at http://tapas.item.ntnu.no and the project manager, Professor Finn Arve Aagesen, can be reached at finn.arve.aagesen@item.ntnu.no.