fesaGSI::GSICycleDescriptor Class Reference

This Timing Descriptor is used to handle the timing at CERN. More...

#include <GSICycleDescriptor.h>

List of all members.

Public Member Functions

 GSICycleDescriptor (const std::string &machineName, const std::string &groupName)
 Constructor.
virtual ~GSICycleDescriptor ()
 Destructor.
bool isValidCycleSelector (const std::string &timingSelectorName)
 Checks, if the given timingSelectorName is part of this TimingDescriptor.
const std::string getCycleSelectorName (int timingSelectorID)
 returns the SelectorNam of the corresponding timingSelectorID.
int getCycleSelectorId (const std::string &timingSelectorName)
 returns the SelectorID of the corresponding timingSelector.
TgmMachine getTgmMachineId ()
 returns the TgmMachine of this TimingDescriptor
int getTgmGroupId ()
 returns the group Id of this CycleSelector

Protected Member Functions

void refreshData ()
 connects to the timlib, to check if any data has changed

Protected Attributes

std::vector< std::string > lineNamesCol_
 Names of all lines of this TimingDescriptor, retrieved from the timLib.
unsigned long tgmMachineID_
 ID of the tgmMaschine of this TimingDescriptor.
unsigned int tgmGroup_
 ID of the tgmGroup of this TimingDescriptor.
TgmGroupDescriptor group_
 The tgm group, which is used.
std::string tgmMachineName_
 name of the tgmMaschine of this TimingDescriptor
std::string tgmGroupName_
 name of the group of this TimingDescriptor
fesa::FesaLogger * log_
 Fesa-logger to log errors.

Detailed Description

This Timing Descriptor is used to handle the timing at CERN.

Definition at line 23 of file GSICycleDescriptor.h.


Constructor & Destructor Documentation

fesaGSI::GSICycleDescriptor::GSICycleDescriptor ( const std::string &  machineName,
const std::string &  groupName 
)

Constructor.

Parameters:
machineName The accelerator name
groupName group, for which the data can be multiplexed. For example USER (VA)

Definition at line 13 of file GSICycleDescriptor.cpp.

References FESAGSIErrorGroupDescriptorFailedForMachine, FESAGSIErrorWrongMachineName, group_, lineNamesCol_, log_, refreshData(), tgmGroup_, tgmGroupName_, tgmMachineID_, and tgmMachineName_.

fesaGSI::GSICycleDescriptor::~GSICycleDescriptor (  )  [virtual]

Destructor.

Definition at line 65 of file GSICycleDescriptor.cpp.


Member Function Documentation

int fesaGSI::GSICycleDescriptor::getCycleSelectorId ( const std::string &  timingSelectorName  ) 

returns the SelectorID of the corresponding timingSelector.

Parameters:
timingSelectorName the name of the requested timingSelector
Returns:
timingSelector ID

Definition at line 131 of file GSICycleDescriptor.cpp.

References group_, refreshData(), and tgmMachineID_.

Referenced by fesa::match(), and fesaGSI::TimingContext::TimingContext().

const std::string fesaGSI::GSICycleDescriptor::getCycleSelectorName ( int  timingSelectorID  ) 

returns the SelectorNam of the corresponding timingSelectorID.

Parameters:
timingSelectorID the ID of the requested timingSelector
Returns:
timingSelectorName

Definition at line 149 of file GSICycleDescriptor.cpp.

References group_, refreshData(), and tgmMachineID_.

int fesaGSI::GSICycleDescriptor::getTgmGroupId (  ) 

returns the group Id of this CycleSelector

Returns:
group id

Definition at line 167 of file GSICycleDescriptor.cpp.

References tgmGroup_.

Referenced by fesa::match().

TgmMachine fesaGSI::GSICycleDescriptor::getTgmMachineId (  )  [inline]

returns the TgmMachine of this TimingDescriptor

Returns:
TgmMachineID as enum

Definition at line 114 of file GSICycleDescriptor.h.

References tgmMachineID_.

Referenced by fesaGSI::TimingContext::TimingContext().

bool fesaGSI::GSICycleDescriptor::isValidCycleSelector ( const std::string &  timingSelectorName  ) 

Checks, if the given timingSelectorName is part of this TimingDescriptor.

Returns:
true, if valid

Definition at line 101 of file GSICycleDescriptor.cpp.

References FESAGSIErrorTimingSelectorSeparatorNotFound, group_, refreshData(), and tgmMachineID_.

void fesaGSI::GSICycleDescriptor::refreshData (  )  [protected]

connects to the timlib, to check if any data has changed

Definition at line 70 of file GSICycleDescriptor.cpp.

References group_, lineNamesCol_, tgmGroupName_, tgmMachineID_, and tgmMachineName_.

Referenced by getCycleSelectorId(), getCycleSelectorName(), GSICycleDescriptor(), and isValidCycleSelector().


Member Data Documentation

TgmGroupDescriptor fesaGSI::GSICycleDescriptor::group_ [protected]

The tgm group, which is used.

Definition at line 96 of file GSICycleDescriptor.h.

Referenced by getCycleSelectorId(), getCycleSelectorName(), GSICycleDescriptor(), isValidCycleSelector(), and refreshData().

std::vector<std::string> fesaGSI::GSICycleDescriptor::lineNamesCol_ [protected]

Names of all lines of this TimingDescriptor, retrieved from the timLib.

Definition at line 81 of file GSICycleDescriptor.h.

Referenced by GSICycleDescriptor(), and refreshData().

fesa::FesaLogger* fesaGSI::GSICycleDescriptor::log_ [protected]

Fesa-logger to log errors.

Definition at line 111 of file GSICycleDescriptor.h.

Referenced by GSICycleDescriptor().

unsigned int fesaGSI::GSICycleDescriptor::tgmGroup_ [protected]

ID of the tgmGroup of this TimingDescriptor.

Definition at line 91 of file GSICycleDescriptor.h.

Referenced by getTgmGroupId(), and GSICycleDescriptor().

name of the group of this TimingDescriptor

Definition at line 106 of file GSICycleDescriptor.h.

Referenced by GSICycleDescriptor(), and refreshData().

unsigned long fesaGSI::GSICycleDescriptor::tgmMachineID_ [protected]

ID of the tgmMaschine of this TimingDescriptor.

Definition at line 86 of file GSICycleDescriptor.h.

Referenced by getCycleSelectorId(), getCycleSelectorName(), getTgmMachineId(), GSICycleDescriptor(), isValidCycleSelector(), and refreshData().

name of the tgmMaschine of this TimingDescriptor

Definition at line 101 of file GSICycleDescriptor.h.

Referenced by GSICycleDescriptor(), and refreshData().


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

Generated on 25 Jan 2013 for fesa-core-gsi by  doxygen 1.6.1