GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TGo4AnalysisProxy Class Reference

#include <TGo4AnalysisProxy.h>

+ Inheritance diagram for TGo4AnalysisProxy:

Public Member Functions

 TGo4AnalysisProxy (Bool_t isserver=kFALSE)
 
virtual ~TGo4AnalysisProxy ()
 
virtual void Initialize (TGo4Slot *slot)
 
virtual void Finalize (TGo4Slot *slot)
 
virtual Bool_t HasSublevels () const
 
virtual TGo4LevelIterMakeIter ()
 
virtual TGo4AccessProvideAccess (const char *name)
 
virtual void WriteData (TGo4Slot *slot, TDirectory *dir, Bool_t onlyobjs)
 
virtual void ReadData (TGo4Slot *slot, TDirectory *dir)
 
virtual const char * GetContainedObjectInfo ()
 
virtual Int_t GetObjectKind ()
 
virtual const char * GetContainedClassName ()
 
virtual TObject * GetAssignedObject ()
 
virtual void Update (TGo4Slot *slot, Bool_t strong)
 
virtual Bool_t IsGo4Analysis () const
 
virtual Bool_t IsAnalysisServer () const
 
virtual Bool_t IsConnected ()
 
virtual Bool_t IsViewer ()
 
virtual Bool_t IsController ()
 
virtual Bool_t IsAdministrator ()
 
virtual Bool_t RefreshNamesList ()
 
virtual Bool_t DelayedRefreshNamesList (Int_t delay_sec)
 
virtual Bool_t CanSubmitObjects ()
 
virtual void RequestAnalysisSettings ()
 
virtual void SubmitAnalysisSettings ()
 
virtual void CloseAnalysisSettings ()
 
virtual Bool_t IsAnalysisRunning () const
 
virtual void StartAnalysis ()
 
virtual void StopAnalysis ()
 
virtual Bool_t RequestObjectStatus (const char *objectname, TGo4Slot *tgtslot)
 
virtual void RequestEventStatus (const char *evname, Bool_t astree, TGo4Slot *tgtslot)
 
virtual Bool_t UpdateAnalysisObject (const char *objectname, TObject *obj)
 
virtual void ClearAllAnalysisObjects ()
 
virtual void ClearAnalysisObject (const char *fullpath)
 
virtual void RemoteTreeDraw (const char *treename, const char *varexp, const char *cutcond, const char *hname)
 
virtual void ChageObjectProtection (const char *fullpath, const char *flags)
 
virtual void RemoveObjectFromAnalysis (const char *fullpath)
 
virtual void ExecuteLine (const char *line)
 
virtual void PrintDynListEntry (const char *fullpath)
 
virtual void RemotePrintEvent (const char *evname, Int_t evnumber, Int_t subid, Bool_t ishex, Bool_t islong)
 
virtual void LoadConfigFile (const char *fname)
 
virtual void SaveConfigFile (const char *fname)
 
virtual void WriteAutoSave (const char *fname, Int_t complevel, Bool_t overwrite)
 
virtual Bool_t NamesListReceived ()
 
TGo4SlotUpdateObjectSlot ()
 
Int_t ConnectorPort ()
 
Int_t GetRole ()
 
void ReceiveObject (TNamed *obj)
 
void ReceiveStatus (TGo4Status *status)
 
Bool_t SubmitProxy (TGo4AnalysisObjectAccess *proxy)
 
virtual Int_t NumberOfWaitingProxyes ()
 
Bool_t LaunchAsClient (TString &launchcmd, TString &killcmd, Int_t shellkind, Int_t konsole, const char *name, const char *remotehost, const char *remotedir, const char *remoteexe, Int_t exe_kind=0, const char *exeargs=0)
 
Bool_t ConnectToServer (const char *remotehost, Int_t remoteport, Int_t ascontroller, const char *accesspass)
 
Bool_t WaitForConnection (Int_t seconds)
 
void DisplayDeleted (TGo4Display *displ)
 
void DisplayDisconnected (TGo4Display *displ)
 
virtual void DisconnectAnalysis (Int_t waittime=30, Bool_t servershutdown=kFALSE)
 
virtual Bool_t HandleTimer (TTimer *timer)
 
void SetDefaultReceiver (TGo4ObjectManager *rcv, const char *path)
 
 ClassDef (TGo4AnalysisProxy, 1)
 
- Public Member Functions inherited from TGo4ServerProxy
 TGo4ServerProxy ()
 
virtual ~TGo4ServerProxy ()
 
TGo4SlotParentSlot ()
 
TGo4SlotSettingsSlot ()
 
TGo4SlotRatemeterSlot ()
 
TGo4SlotLoginfoSlot ()
 
TGo4SlotDebugOutputSlot ()
 
virtual const char * GetServerName () const
 
virtual const char * GetUserName () const
 
virtual TString FindCommand (const char *name)
 
virtual Int_t NumCommandArgs (const char *name)
 
virtual Bool_t SubmitCommand (const char *name, Int_t waitres=-1, const char *arg1=0, const char *arg2=0, const char *arg3=0)
 
void SetAnalysisLaunched (Int_t on=1)
 
Int_t IsAnalysisLaunched () const
 
void SetAnalysisReady (Bool_t on=kTRUE)
 
Bool_t IsAnalysisReady () const
 
void SetAnalysisSettingsReady (Bool_t on=kTRUE)
 
Bool_t IsAnalysisSettingsReady () const
 
virtual void ResetDebugOutputRequests ()
 
 ClassDef (TGo4ServerProxy, 1)
 
- Public Member Functions inherited from TGo4Proxy
 TGo4Proxy ()
 
virtual ~TGo4Proxy ()
 
virtual Bool_t RemoveRegisteredObject (TObject *obj)
 
virtual Bool_t Use () const
 
virtual Int_t GetObjectSizeInfo ()
 
virtual Bool_t IsAcceptObject (TClass *cl)
 
virtual Bool_t AssignObject (TGo4Slot *slot, TObject *obj, Bool_t owner)
 
virtual Bool_t ProcessEvent (TGo4Slot *slot, TGo4Slot *source, Int_t id, void *param)
 
 ClassDef (TGo4Proxy, 1)
 

Static Public Member Functions

static Bool_t LaunchAsServer (TString &launchcmd, TString &killcmd, Int_t shellkind, Int_t konsole, const char *name, const char *remotehost, Int_t remoteport, const char *remotedir, const char *remoteexe, Int_t exe_kind=0, const char *exeargs=0)
 
- Static Public Member Functions inherited from TGo4ServerProxy
static Bool_t GetLaunchString (TString &launchcmd, TString &killcmd, Int_t serverkind, Int_t shellkind, Int_t konsole, const char *name, const char *remotehost, const char *remotedir, const char *remoteexe, Int_t guiport, Int_t exe_kind=0, const char *exeargs=0)
 
- Static Public Member Functions inherited from TGo4Proxy
static TClass * GetClass (const char *classname, Bool_t load=kFALSE)
 

Protected Member Functions

TGo4AnalysisObjectAccessFindSubmittedProxy (const char *pathname, const char *objname)
 
void DeleteSubmittedProxy (TGo4AnalysisObjectAccess *proxy)
 
void AssignNewNamesList (TGo4AnalysisObjectNames *objnames)
 
void CallSlotUpdate ()
 

Protected Attributes

Bool_t fIsServer
 
TGo4AnalysisDummySlot * fDummySlot
 
TGo4AnalysisObjectNamesfAnalysisNames
 
TObjArray fxSubmittedProxy
 
TGo4AnalysisObjectAccessfxDefaultProxy
 
Bool_t fbNamesListReceived
 
Bool_t fbAnalysisReady
 
Bool_t fbAnalysisRunning
 
Int_t fDisconectCounter
 
TGo4DisplayfxDisplay
 
Int_t fActualRole
 
TTimer * fxRefreshTimer
 
TTimer * fxConnectionTimer
 
Int_t fNumberOfWaitingProxyes
 
- Protected Attributes inherited from TGo4ServerProxy
TGo4SlotfxParentSlot
 
Bool_t fbAnalysisReady
 
Bool_t fbAnalysisSettingsReady
 
Int_t fAnalysisLaunched
 
TString fNodeName
 0 - not launched, 1 - external shell, 2 - in qt shell More...
 
TString fInfoStr
 

Detailed Description

Definition at line 32 of file TGo4AnalysisProxy.h.

Constructor & Destructor Documentation

TGo4AnalysisProxy::TGo4AnalysisProxy ( Bool_t  isserver = kFALSE)
TGo4AnalysisProxy::~TGo4AnalysisProxy ( )
virtual

Member Function Documentation

void TGo4AnalysisProxy::AssignNewNamesList ( TGo4AnalysisObjectNames objnames)
protected
void TGo4AnalysisProxy::CallSlotUpdate ( )
protected
virtual Bool_t TGo4AnalysisProxy::CanSubmitObjects ( )
inlinevirtual

Reimplemented from TGo4ServerProxy.

Definition at line 95 of file TGo4AnalysisProxy.h.

References IsConnected(), and IsViewer().

void TGo4AnalysisProxy::ChageObjectProtection ( const char *  fullpath,
const char *  flags 
)
virtual
TGo4AnalysisProxy::ClassDef ( TGo4AnalysisProxy  ,
 
)
void TGo4AnalysisProxy::ClearAllAnalysisObjects ( )
virtual

Reimplemented from TGo4ServerProxy.

Definition at line 859 of file TGo4AnalysisProxy.cxx.

References ClearAnalysisObject().

void TGo4AnalysisProxy::ClearAnalysisObject ( const char *  fullpath)
virtual
void TGo4AnalysisProxy::CloseAnalysisSettings ( )
virtual
Int_t TGo4AnalysisProxy::ConnectorPort ( )
Bool_t TGo4AnalysisProxy::ConnectToServer ( const char *  remotehost,
Int_t  remoteport,
Int_t  ascontroller,
const char *  accesspass 
)
Bool_t TGo4AnalysisProxy::DelayedRefreshNamesList ( Int_t  delay_sec)
virtual

Reimplemented from TGo4ServerProxy.

Definition at line 618 of file TGo4AnalysisProxy.cxx.

References fxRefreshTimer.

void TGo4AnalysisProxy::DeleteSubmittedProxy ( TGo4AnalysisObjectAccess proxy)
protected
void TGo4AnalysisProxy::DisconnectAnalysis ( Int_t  waittime = 30,
Bool_t  servershutdown = kFALSE 
)
virtual

Close connection to analysis and destroys proxy with correspondent slot. Wait waittime (in sec) for safe disconnection of the analysis. if servershutdown = kTRUE, shutdown command will be sent to analysis

Reimplemented from TGo4ServerProxy.

Definition at line 1042 of file TGo4AnalysisProxy.cxx.

References CallSlotUpdate(), fActualRole, fDisconectCounter, fxConnectionTimer, fxDisplay, and TGo4Master::SubmitCommand().

Referenced by TGo4Interface::DisconnectAnalysis(), DisplayDisconnected(), and TGo4Interface::ShutdownAnalysis().

void TGo4AnalysisProxy::DisplayDeleted ( TGo4Display displ)

Definition at line 1074 of file TGo4AnalysisProxy.cxx.

References fxDisplay.

Referenced by TGo4Display::~TGo4Display().

void TGo4AnalysisProxy::DisplayDisconnected ( TGo4Display displ)

Definition at line 1079 of file TGo4AnalysisProxy.cxx.

References DisconnectAnalysis(), and fxDisplay.

Referenced by TGo4Display::DisconnectSlave().

void TGo4AnalysisProxy::ExecuteLine ( const char *  line)
virtual

Reimplemented from TGo4ServerProxy.

Definition at line 852 of file TGo4AnalysisProxy.cxx.

References fxDisplay, TGo4ComExecLine::SetLine(), and TGo4Master::SubmitCommand().

void TGo4AnalysisProxy::Finalize ( TGo4Slot slot)
virtual

Reimplemented from TGo4Proxy.

Definition at line 363 of file TGo4AnalysisProxy.cxx.

References TGo4Slot::DeleteChilds(), and TGo4ServerProxy::fxParentSlot.

TGo4AnalysisObjectAccess * TGo4AnalysisProxy::FindSubmittedProxy ( const char *  pathname,
const char *  objname 
)
protected
virtual TObject* TGo4AnalysisProxy::GetAssignedObject ( )
inlinevirtual

Reimplemented from TGo4Proxy.

Definition at line 77 of file TGo4AnalysisProxy.h.

virtual const char* TGo4AnalysisProxy::GetContainedClassName ( )
inlinevirtual

Reimplemented from TGo4Proxy.

Definition at line 76 of file TGo4AnalysisProxy.h.

const char * TGo4AnalysisProxy::GetContainedObjectInfo ( )
virtual
virtual Int_t TGo4AnalysisProxy::GetObjectKind ( )
inlinevirtual

Reimplemented from TGo4Proxy.

Definition at line 75 of file TGo4AnalysisProxy.h.

References TGo4Access::kndFolder.

Int_t TGo4AnalysisProxy::GetRole ( )
Bool_t TGo4AnalysisProxy::HandleTimer ( TTimer *  timer)
virtual
Bool_t TGo4AnalysisProxy::HasSublevels ( ) const
virtual

Reimplemented from TGo4Proxy.

Definition at line 372 of file TGo4AnalysisProxy.cxx.

References fAnalysisNames.

void TGo4AnalysisProxy::Initialize ( TGo4Slot slot)
virtual
Bool_t TGo4AnalysisProxy::IsAdministrator ( )
virtual
virtual Bool_t TGo4AnalysisProxy::IsAnalysisRunning ( ) const
inlinevirtual

Reimplemented from TGo4ServerProxy.

Definition at line 100 of file TGo4AnalysisProxy.h.

References fbAnalysisRunning.

Referenced by TGo4Script::ProduceScript().

virtual Bool_t TGo4AnalysisProxy::IsAnalysisServer ( ) const
inlinevirtual
Bool_t TGo4AnalysisProxy::IsConnected ( )
virtual
Bool_t TGo4AnalysisProxy::IsController ( )
virtual
virtual Bool_t TGo4AnalysisProxy::IsGo4Analysis ( ) const
inlinevirtual

Reimplemented from TGo4ServerProxy.

Definition at line 84 of file TGo4AnalysisProxy.h.

Bool_t TGo4AnalysisProxy::IsViewer ( )
virtual

Reimplemented from TGo4ServerProxy.

Definition at line 408 of file TGo4AnalysisProxy.cxx.

References GetRole(), and kGo4ComModeObserver.

Referenced by CanSubmitObjects().

Bool_t TGo4AnalysisProxy::LaunchAsClient ( TString &  launchcmd,
TString &  killcmd,
Int_t  shellkind,
Int_t  konsole,
const char *  name,
const char *  remotehost,
const char *  remotedir,
const char *  remoteexe,
Int_t  exe_kind = 0,
const char *  exeargs = 0 
)
Bool_t TGo4AnalysisProxy::LaunchAsServer ( TString &  launchcmd,
TString &  killcmd,
Int_t  shellkind,
Int_t  konsole,
const char *  name,
const char *  remotehost,
Int_t  remoteport,
const char *  remotedir,
const char *  remoteexe,
Int_t  exe_kind = 0,
const char *  exeargs = 0 
)
static
void TGo4AnalysisProxy::LoadConfigFile ( const char *  fname)
virtual

Reimplemented from TGo4ServerProxy.

Definition at line 801 of file TGo4AnalysisProxy.cxx.

References fxDisplay, TGo4RemoteCommand::SetString(), and TGo4Master::SubmitCommand().

TGo4LevelIter * TGo4AnalysisProxy::MakeIter ( )
virtual

Reimplemented from TGo4Proxy.

Definition at line 377 of file TGo4AnalysisProxy.cxx.

References fAnalysisNames, and TGo4AnalysisObjectNames::GetNamesFolder().

Bool_t TGo4AnalysisProxy::NamesListReceived ( )
virtual

Reimplemented from TGo4ServerProxy.

Definition at line 627 of file TGo4AnalysisProxy.cxx.

References fbNamesListReceived.

virtual Int_t TGo4AnalysisProxy::NumberOfWaitingProxyes ( )
inlinevirtual

Reimplemented from TGo4ServerProxy.

Definition at line 154 of file TGo4AnalysisProxy.h.

References fNumberOfWaitingProxyes.

void TGo4AnalysisProxy::PrintDynListEntry ( const char *  fullpath)
virtual
TGo4Access * TGo4AnalysisProxy::ProvideAccess ( const char *  name)
virtual
void TGo4AnalysisProxy::ReadData ( TGo4Slot slot,
TDirectory *  dir 
)
virtual

Reimplemented from TGo4Proxy.

Definition at line 388 of file TGo4AnalysisProxy.cxx.

void TGo4AnalysisProxy::ReceiveObject ( TNamed *  obj)
void TGo4AnalysisProxy::ReceiveStatus ( TGo4Status status)
Bool_t TGo4AnalysisProxy::RefreshNamesList ( )
virtual

Reimplemented from TGo4ServerProxy.

Definition at line 609 of file TGo4AnalysisProxy.cxx.

References fbNamesListReceived, fxDisplay, and TGo4Master::SubmitCommand().

Referenced by ConnectToServer(), HandleTimer(), and Update().

void TGo4AnalysisProxy::RemotePrintEvent ( const char *  evname,
Int_t  evnumber,
Int_t  subid,
Bool_t  ishex,
Bool_t  islong 
)
virtual
void TGo4AnalysisProxy::RemoteTreeDraw ( const char *  treename,
const char *  varexp,
const char *  cutcond,
const char *  hname 
)
virtual
void TGo4AnalysisProxy::RemoveObjectFromAnalysis ( const char *  fullpath)
virtual
void TGo4AnalysisProxy::RequestAnalysisSettings ( )
virtual

Reimplemented from TGo4ServerProxy.

Definition at line 894 of file TGo4AnalysisProxy.cxx.

References fxDisplay, and TGo4Master::SubmitCommand().

Referenced by TGo4Interface::ConnectAnalysis().

void TGo4AnalysisProxy::RequestEventStatus ( const char *  evname,
Bool_t  astree,
TGo4Slot tgtslot 
)
virtual
Bool_t TGo4AnalysisProxy::RequestObjectStatus ( const char *  objectname,
TGo4Slot tgtslot 
)
virtual
void TGo4AnalysisProxy::SaveConfigFile ( const char *  fname)
virtual

Reimplemented from TGo4ServerProxy.

Definition at line 813 of file TGo4AnalysisProxy.cxx.

References fxDisplay, TGo4RemoteCommand::SetString(), and TGo4Master::SubmitCommand().

void TGo4AnalysisProxy::SetDefaultReceiver ( TGo4ObjectManager rcv,
const char *  path 
)

Set receiver for object envelopes, which coming from analysis without request

Definition at line 1129 of file TGo4AnalysisProxy.cxx.

References cmdDefualtEnvelope, fxDefaultProxy, and TGo4AnalysisObjectAccess::SetDefaultReceiver().

Referenced by TGo4Interface::AddAnalysisProxy(), and TGo4MainWindow::AddAnalysisProxy().

void TGo4AnalysisProxy::StartAnalysis ( )
virtual

Reimplemented from TGo4ServerProxy.

Definition at line 840 of file TGo4AnalysisProxy.cxx.

References fbAnalysisRunning, fxDisplay, and TGo4Master::SubmitCommand().

void TGo4AnalysisProxy::StopAnalysis ( )
virtual

Reimplemented from TGo4ServerProxy.

Definition at line 846 of file TGo4AnalysisProxy.cxx.

References fbAnalysisRunning, fxDisplay, and TGo4Master::SubmitCommand().

void TGo4AnalysisProxy::SubmitAnalysisSettings ( )
virtual
Bool_t TGo4AnalysisProxy::SubmitProxy ( TGo4AnalysisObjectAccess proxy)
void TGo4AnalysisProxy::Update ( TGo4Slot slot,
Bool_t  strong 
)
virtual

Reimplemented from TGo4Proxy.

Definition at line 651 of file TGo4AnalysisProxy.cxx.

References RefreshNamesList().

Bool_t TGo4AnalysisProxy::UpdateAnalysisObject ( const char *  objectname,
TObject *  obj 
)
virtual

new with single set object command:

Reimplemented from TGo4ServerProxy.

Definition at line 785 of file TGo4AnalysisProxy.cxx.

References fxDisplay, TGo4RemoteCommand::SetAggregate(), TGo4RemoteCommand::SetString(), and TGo4Master::SubmitCommand().

TGo4Slot * TGo4AnalysisProxy::UpdateObjectSlot ( )
Bool_t TGo4AnalysisProxy::WaitForConnection ( Int_t  seconds)

Definition at line 1029 of file TGo4AnalysisProxy.cxx.

References IsConnected().

void TGo4AnalysisProxy::WriteAutoSave ( const char *  fname,
Int_t  complevel,
Bool_t  overwrite 
)
virtual
void TGo4AnalysisProxy::WriteData ( TGo4Slot slot,
TDirectory *  dir,
Bool_t  onlyobjs 
)
virtual

Reimplemented from TGo4Proxy.

Definition at line 384 of file TGo4AnalysisProxy.cxx.

Member Data Documentation

Int_t TGo4AnalysisProxy::fActualRole
protected

Definition at line 44 of file TGo4AnalysisProxy.h.

Referenced by DisconnectAnalysis(), GetRole(), IsConnected(), and ReceiveStatus().

TGo4AnalysisObjectNames* TGo4AnalysisProxy::fAnalysisNames
protected
Bool_t TGo4AnalysisProxy::fbAnalysisReady
protected

Definition at line 40 of file TGo4AnalysisProxy.h.

Bool_t TGo4AnalysisProxy::fbAnalysisRunning
protected

Definition at line 41 of file TGo4AnalysisProxy.h.

Referenced by IsAnalysisRunning(), ReceiveStatus(), StartAnalysis(), and StopAnalysis().

Bool_t TGo4AnalysisProxy::fbNamesListReceived
protected

Definition at line 39 of file TGo4AnalysisProxy.h.

Referenced by AssignNewNamesList(), NamesListReceived(), and RefreshNamesList().

Int_t TGo4AnalysisProxy::fDisconectCounter
protected

Definition at line 42 of file TGo4AnalysisProxy.h.

Referenced by DisconnectAnalysis(), HandleTimer(), and ~TGo4AnalysisProxy().

TGo4AnalysisDummySlot* TGo4AnalysisProxy::fDummySlot
protected

Definition at line 35 of file TGo4AnalysisProxy.h.

Bool_t TGo4AnalysisProxy::fIsServer
protected

Definition at line 34 of file TGo4AnalysisProxy.h.

Referenced by IsAnalysisServer().

Int_t TGo4AnalysisProxy::fNumberOfWaitingProxyes
protected
TTimer* TGo4AnalysisProxy::fxConnectionTimer
protected

Definition at line 46 of file TGo4AnalysisProxy.h.

Referenced by DisconnectAnalysis(), HandleTimer(), and ~TGo4AnalysisProxy().

TGo4AnalysisObjectAccess* TGo4AnalysisProxy::fxDefaultProxy
protected

Definition at line 38 of file TGo4AnalysisProxy.h.

Referenced by ReceiveObject(), SetDefaultReceiver(), and ~TGo4AnalysisProxy().

TGo4Display* TGo4AnalysisProxy::fxDisplay
protected
TTimer* TGo4AnalysisProxy::fxRefreshTimer
protected

Definition at line 45 of file TGo4AnalysisProxy.h.

Referenced by DelayedRefreshNamesList(), HandleTimer(), and ~TGo4AnalysisProxy().

TObjArray TGo4AnalysisProxy::fxSubmittedProxy
protected

The documentation for this class was generated from the following files: