v2.10-0 (21000JUN2005)

Go4TaskHandlerExample
Class TGo4ExampleClient


class TGo4ExampleClient
derived from TGo4ClientTask

Example class for a client application;
this may be the analysis client later on which keeps the
analysis class itself as aggregate and provides threads to work on analysis


Field Summary
 private Text_t*fcMainName
          Remember name of main thread
 private Text_t*fcWatchName
          Remember name of watch thread
 const static const Text_t[]fgcMAINTHREAD
          Suffix for main thread name
 const static const Text_t[]fgcWATCHTHREAD
          Suffix for watch thread name
 private TGo4ExampleApplication*fxApplication
           

Fields inherited from class Go4TaskHandler.TGo4Task
fgiTERMID, fxStatusBuffer, fxStatusMutex

Fields inherited from class Go4ThreadManager.TGo4ThreadManager
fbAppBlocking, fbAutoCreate, fbAutoStart, fbInitDone, fbTerminateApplication, fbTerminating, fglTIMERPERIOD, fguTEXTLENGTH, fxBlocker, fxWorkHandler

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
 TGo4ExampleClient(const char * name, const char * host, UInt_t negport, Bool_t blockingmode)
           
 private TGo4ExampleClient()
           

Destructor Summary
 virtual synchronized ~TGo4ExampleClient()
           

Method Summary
 virtual TGo4TaskStatus*CreateStatus()
          create a status object with information on the
current client state. this object may be sent to the
server or may be used to restore current status by
memento mechanism.
 TGo4ExampleApplication*GetApplication()
           
 virtual voidStart()
           
 virtual voidStop()
           
 protected virtual voidUpdateStatus(TGo4ClientStatus* state)
          method needed by method
CreateStatus of any status subclasses to
set the values of the clienttask specific
part of the status object.

Methods inherited from class Go4TaskHandler.TGo4ClientTask
AddLocalCommand, ConnectServer, DisconnectServer, GetCommandQueue, GetDataQueue, GetServerHostName, GetStatusQueue, GetTaskHandler, Initialization, IsConnected, Quit, UpdateStatus

Methods inherited from class Go4TaskHandler.TGo4Task
AddUserCommand, AddUserCommandList, CreateCommandList, ExecuteString, GetCommanderName, GetLocalCommandQueue, GetMaster, GetPrototype, GetSlave, GetStatus, IsMaster, IsWorkStopped, KillMain, MakeCommand, NextCommand, NextObject, NextStatus, RestartMain, SendObject, SendStatus, SendStatusBuffer, SendStatusMessage, SendStopBuffers, SetMaster, SetOwner, SetWorkIsStopped, StartWorkThreads, StopWorkThreads, SubmitCommand, SubmitCommand, SubmitEmergencyCommand, SubmitEmergencyData, SubmitLocalCommand, Terminate, TerminateFast, UpdateStatusBuffer, WakeCommandQueue

Methods inherited from class Go4ThreadManager.TGo4ThreadManager
BlockApp, GetWorkHandler, IsAppBlocking, IsInitDone, IsTerminateApp, IsTerminating, Launch, operator=, SetTimer, UnBlockApp

Methods inherited from class TNamed
operator=, Clear, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Print, Sizeof, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine

Field Detail

fcMainName

private Text_t* fcMainName
Remember name of main thread

fcWatchName

private Text_t* fcWatchName
Remember name of watch thread

fgcMAINTHREAD

public const static const Text_t[] fgcMAINTHREAD
Suffix for main thread name

fgcWATCHTHREAD

public const static const Text_t[] fgcWATCHTHREAD
Suffix for watch thread name

fxApplication

private TGo4ExampleApplication* fxApplication
supplierCardinality 1
link aggregationByValue
clientCardinality 0..1
Constructor Detail

TGo4ExampleClient

public TGo4ExampleClient(const char * name, const char * host, UInt_t negport, Bool_t blockingmode)

TGo4ExampleClient

private TGo4ExampleClient()
Method Detail

~TGo4ExampleClient

public virtual synchronized ~TGo4ExampleClient()
Method Detail

CreateStatus

public virtual TGo4TaskStatus* CreateStatus()
create a status object with information on the
current client state. this object may be sent to the
server or may be used to restore current status by
memento mechanism. Overridden from superclass

GetApplication

public TGo4ExampleApplication* GetApplication()

Start

public virtual void Start()

Stop

public virtual void Stop()

UpdateStatus

protected virtual void UpdateStatus(TGo4ClientStatus* state)
method needed by method
CreateStatus of any status subclasses to
set the values of the clienttask specific
part of the status object.

Association Links

to Class TGo4ExampleApplication

Client Cardinality 0..1
Supplier Cardinality 1
Type aggregationByValue

J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005