Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes

TGo4AnalysisProxy Class Reference

#include <TGo4AnalysisProxy.h>

Inheritance diagram for TGo4AnalysisProxy:
TGo4Proxy

List of all members.

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 TGo4AccessMakeProxy (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)
TGo4SlotParentSlot ()
TGo4SlotSettingsSlot ()
TGo4SlotRatemeterSlot ()
TGo4SlotLoginfoSlot ()
TGo4SlotUpdateObjectSlot ()
Bool_t IsAnalysisServer () const
Bool_t IsConnected ()
Int_t ConnectorPort ()
Int_t GetRole ()
Bool_t IsViewer ()
Bool_t IsController ()
Bool_t IsAdministrator ()
void SetAnalysisReady (Bool_t on=kTRUE)
Bool_t IsAnalysisReady () const
void SetAnalysisSettingsReady (Bool_t on=kTRUE)
Bool_t IsAnalysisSettingsReady () const
Bool_t IsAnalysisRunning () const
void RefreshNamesList ()
void DelayedRefreshNamesList (Int_t delay_sec)
Bool_t NamesListReceived ()
void ReceiveObject (TNamed *obj)
void ReceiveStatus (TGo4Status *status)
Bool_t SubmitProxy (TGo4AnalysisObjectAccess *proxy)
void LoadConfigFile (const char *fname)
void SaveConfigFile (const char *fname)
void WriteAutoSave (const char *fname, Int_t complevel, Bool_t overwrite)
void StartAnalysis ()
void StopAnalysis ()
void ExecuteLine (const char *line)
void RequestAnalysisSettings ()
void SubmitAnalysisSettings ()
void CloseAnalysisSettings ()
void RequestObjectStatus (const char *objectname, TGo4Slot *tgtslot)
void RequestEventStatus (const char *evname, Bool_t astree, TGo4Slot *tgtslot)
void RemoteTreeDraw (const char *treename, const char *varexp, const char *cutcond, const char *hname)
void RemotePrintEvent (const char *evname, Int_t evnumber, Int_t subid, Bool_t ishex, Bool_t islong)
Bool_t UpdateAnalysisObject (const char *fullpath, TObject *obj)
void ClearAnalysisObject (const char *fullpath)
void ChageObjectProtection (const char *fullpath, const char *flags)
void RemoveObjectFromAnalysis (const char *fullpath, TClass *cl=0)
void PrintDynListEntry (const char *fullpath)
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 DisconnectAnalysis (Int_t waittime=30, Bool_t servershutdown=kFALSE)
void DisplayDeleted (TGo4Display *displ)
void DisplayDisconnected (TGo4Display *displ)
virtual Bool_t HandleTimer (TTimer *timer)
void SetDefaultReceiver (TGo4ObjectManager *rcv, const char *path)

Static Public Member Functions

static Int_t NumberOfWaitingProxyes ()
static Bool_t LaunchAsServer (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)

Protected Member Functions

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

Static Protected Member Functions

static Bool_t GetLaunchString (TString &launchcmd, TString &killcmd, Bool_t server, 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)

Protected Attributes

Bool_t fIsServer
TGo4AnalysisDummySlot * fDummySlot
TGo4AnalysisObjectNamesfAnalysisNames
TGo4SlotfxParentSlot
TObjArray fxSubmittedProxy
TGo4AnalysisObjectAccessfxDefaultProxy
Bool_t fbNamesListReceived
Bool_t fbAnalysisReady
Bool_t fbAnalysisSettingsReady
Bool_t fbAnalysisRunning
Int_t fDisconectCounter
TGo4DisplayfxDisplay
TString fInfoStr
Int_t fActualRole
TTimer * fxRefreshTimer
TTimer * fxConnectionTimer

Static Protected Attributes

static Int_t fNumberOfWaitingProxyes = 0

Detailed Description

Definition at line 32 of file TGo4AnalysisProxy.h.


Constructor & Destructor Documentation

TGo4AnalysisProxy::TGo4AnalysisProxy ( Bool_t  isserver = kFALSE  ) 

Member Function Documentation

void TGo4AnalysisProxy::AssignNewNamesList ( TGo4AnalysisObjectNames objnames  )  [protected]
void TGo4AnalysisProxy::CallSlotUpdate (  )  [protected]
void TGo4AnalysisProxy::ChageObjectProtection ( const char *  fullpath,
const char *  flags 
)
TGo4AnalysisProxy::ClassDef ( TGo4AnalysisProxy  ,
 
) [protected]
void TGo4AnalysisProxy::CloseAnalysisSettings (  ) 
Int_t TGo4AnalysisProxy::ConnectorPort (  ) 
Bool_t TGo4AnalysisProxy::ConnectToServer ( const char *  remotehost,
Int_t  remoteport,
Int_t  ascontroller,
const char *  accesspass 
)
void TGo4AnalysisProxy::DelayedRefreshNamesList ( Int_t  delay_sec  ) 
void TGo4AnalysisProxy::DeleteSubmittedProxy ( TGo4AnalysisObjectAccess proxy  )  [protected]
void TGo4AnalysisProxy::DisconnectAnalysis ( Int_t  waittime = 30,
Bool_t  servershutdown = kFALSE 
)

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

Definition at line 1403 of file TGo4AnalysisProxy.cxx.

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

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

void TGo4AnalysisProxy::DisplayDeleted ( TGo4Display displ  ) 

Definition at line 1435 of file TGo4AnalysisProxy.cxx.

References fxDisplay.

Referenced by TGo4Display::~TGo4Display().

void TGo4AnalysisProxy::DisplayDisconnected ( TGo4Display displ  ) 

Definition at line 1440 of file TGo4AnalysisProxy.cxx.

References DisconnectAnalysis(), and fxDisplay.

Referenced by TGo4Display::DisconnectSlave().

void TGo4AnalysisProxy::ExecuteLine ( const char *  line  ) 
void TGo4AnalysisProxy::Finalize ( TGo4Slot slot  )  [virtual]

Reimplemented from TGo4Proxy.

Definition at line 543 of file TGo4AnalysisProxy.cxx.

References TGo4Slot::DeleteChilds(), and fxParentSlot.

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

Reimplemented from TGo4Proxy.

Definition at line 54 of file TGo4AnalysisProxy.h.

virtual const char* TGo4AnalysisProxy::GetContainedClassName (  )  [inline, virtual]

Reimplemented from TGo4Proxy.

Definition at line 53 of file TGo4AnalysisProxy.h.

const char * TGo4AnalysisProxy::GetContainedObjectInfo (  )  [virtual]
Bool_t TGo4AnalysisProxy::GetLaunchString ( TString &  launchcmd,
TString &  killcmd,
Bool_t  server,
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, protected]
virtual Int_t TGo4AnalysisProxy::GetObjectKind (  )  [inline, virtual]

Reimplemented from TGo4Proxy.

Definition at line 52 of file TGo4AnalysisProxy.h.

Bool_t TGo4AnalysisProxy::HandleTimer ( TTimer *  timer  )  [virtual]
Bool_t TGo4AnalysisProxy::HasSublevels (  )  const [virtual]

Reimplemented from TGo4Proxy.

Definition at line 552 of file TGo4AnalysisProxy.cxx.

References fAnalysisNames.

void TGo4AnalysisProxy::Initialize ( TGo4Slot slot  )  [virtual]

Reimplemented from TGo4Proxy.

Definition at line 505 of file TGo4AnalysisProxy.cxx.

References fxParentSlot, and TGo4Slot::SetProxy().

Bool_t TGo4AnalysisProxy::IsAnalysisReady (  )  const [inline]
Bool_t TGo4AnalysisProxy::IsAnalysisRunning (  )  const [inline]

Definition at line 80 of file TGo4AnalysisProxy.h.

References fbAnalysisRunning.

Referenced by TGo4Script::ProduceScript().

Bool_t TGo4AnalysisProxy::IsController (  ) 
Bool_t TGo4AnalysisProxy::IsViewer (  ) 

Definition at line 588 of file TGo4AnalysisProxy.cxx.

References GetRole().

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,
const char *  remotedir,
const char *  remoteexe,
Int_t  exe_kind = 0,
const char *  exeargs = 0 
) [static]

Definition at line 1147 of file TGo4AnalysisProxy.cxx.

References GetLaunchString().

Referenced by TGo4MainWindow::LaunchClientSlot().

void TGo4AnalysisProxy::LoadConfigFile ( const char *  fname  ) 
TGo4Slot * TGo4AnalysisProxy::LoginfoSlot (  ) 
TGo4LevelIter * TGo4AnalysisProxy::MakeIter (  )  [virtual]

Reimplemented from TGo4Proxy.

Definition at line 557 of file TGo4AnalysisProxy.cxx.

References fAnalysisNames, and TGo4AnalysisObjectNames::GetNamesFolder().

TGo4Access * TGo4AnalysisProxy::MakeProxy ( const char *  name  )  [virtual]
Bool_t TGo4AnalysisProxy::NamesListReceived (  ) 
static Int_t TGo4AnalysisProxy::NumberOfWaitingProxyes (  )  [inline, static]

Definition at line 123 of file TGo4AnalysisProxy.h.

References fNumberOfWaitingProxyes.

Referenced by TGo4BrowserProxy::HandleTimer().

TGo4Slot* TGo4AnalysisProxy::ParentSlot (  )  [inline]
void TGo4AnalysisProxy::PrintDynListEntry ( const char *  fullpath  ) 
TGo4Slot * TGo4AnalysisProxy::RatemeterSlot (  ) 
void TGo4AnalysisProxy::ReadData ( TGo4Slot slot,
TDirectory *  dir 
) [virtual]

Reimplemented from TGo4Proxy.

Definition at line 568 of file TGo4AnalysisProxy.cxx.

void TGo4AnalysisProxy::RemotePrintEvent ( const char *  evname,
Int_t  evnumber,
Int_t  subid,
Bool_t  ishex,
Bool_t  islong 
)
void TGo4AnalysisProxy::RemoteTreeDraw ( const char *  treename,
const char *  varexp,
const char *  cutcond,
const char *  hname 
)
void TGo4AnalysisProxy::RemoveObjectFromAnalysis ( const char *  fullpath,
TClass *  cl = 0 
)
void TGo4AnalysisProxy::RequestObjectStatus ( const char *  objectname,
TGo4Slot tgtslot 
)
void TGo4AnalysisProxy::SaveConfigFile ( const char *  fname  ) 
void TGo4AnalysisProxy::SetAnalysisReady ( Bool_t  on = kTRUE  )  [inline]
void TGo4AnalysisProxy::SetAnalysisSettingsReady ( Bool_t  on = kTRUE  )  [inline]
void TGo4AnalysisProxy::SetDefaultReceiver ( TGo4ObjectManager rcv,
const char *  path 
)

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

Definition at line 1493 of file TGo4AnalysisProxy.cxx.

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

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

void TGo4AnalysisProxy::StartAnalysis (  ) 
void TGo4AnalysisProxy::StopAnalysis (  ) 
void TGo4AnalysisProxy::Update ( TGo4Slot slot,
Bool_t  strong 
) [virtual]

Reimplemented from TGo4Proxy.

Definition at line 832 of file TGo4AnalysisProxy.cxx.

References RefreshNamesList().

Bool_t TGo4AnalysisProxy::UpdateAnalysisObject ( const char *  fullpath,
TObject *  obj 
)
TGo4Slot * TGo4AnalysisProxy::UpdateObjectSlot (  ) 
Bool_t TGo4AnalysisProxy::WaitForConnection ( Int_t  seconds  ) 

Definition at line 1390 of file TGo4AnalysisProxy.cxx.

References IsConnected().

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

Reimplemented from TGo4Proxy.

Definition at line 564 of file TGo4AnalysisProxy.cxx.


Member Data Documentation

Int_t TGo4AnalysisProxy::fActualRole [protected]

Definition at line 204 of file TGo4AnalysisProxy.h.

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

Definition at line 198 of file TGo4AnalysisProxy.h.

Referenced by IsAnalysisReady(), and SetAnalysisReady().

Definition at line 201 of file TGo4AnalysisProxy.h.

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

TGo4AnalysisDummySlot* TGo4AnalysisProxy::fDummySlot [protected]

Definition at line 192 of file TGo4AnalysisProxy.h.

TString TGo4AnalysisProxy::fInfoStr [protected]

Definition at line 203 of file TGo4AnalysisProxy.h.

Referenced by GetContainedObjectInfo().

Bool_t TGo4AnalysisProxy::fIsServer [protected]

Definition at line 191 of file TGo4AnalysisProxy.h.

Referenced by IsAnalysisServer().

Definition at line 206 of file TGo4AnalysisProxy.h.

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

TTimer* TGo4AnalysisProxy::fxRefreshTimer [protected]

Definition at line 205 of file TGo4AnalysisProxy.h.

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines