Subversion Repositories DevTools

Rev

Rev 2218 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2218 Rev 2224
Line 31... Line 31...
31
#include <map>
31
#include <map>
32
#include <vector>
32
#include <vector>
33
//## end module%42030C2C00B8.includes
33
//## end module%42030C2C00B8.includes
34
 
34
 
35
 
35
 
-
 
36
class Iteration;
36
class TransactionSpecification;
37
class TransactionSpecification;
37
class EvaluationContext;
38
class EvaluationContext;
38
class TransactionStream;
39
class TransactionStream;
39
class Iteration;
40
class DefinedVariable;
40
 
41
 
41
//## begin module%42030C2C00B8.additionalDeclarations preserve=yes
42
//## begin module%42030C2C00B8.additionalDeclarations preserve=yes
42
//## end module%42030C2C00B8.additionalDeclarations
43
//## end module%42030C2C00B8.additionalDeclarations
43
 
44
 
44
 
45
 
Line 75... Line 76...
75
    //## Destructor (generated)
76
    //## Destructor (generated)
76
      virtual ~TestScenario();
77
      virtual ~TestScenario();
77
 
78
 
78
 
79
 
79
    //## Other Operations (specified)
80
    //## Other Operations (specified)
-
 
81
      //## Operation: defineVariable%425B47DD004F
-
 
82
      //	Define the given variable and evaluate to it.
-
 
83
      DefinedVariable& defineVariable (const std::string &variableName	// The name of the variable.
-
 
84
      );
-
 
85
 
80
      //## Operation: generate%420455D80390
86
      //## Operation: generate%420455D80390
81
      //	Generate the transactions defined for this scenario and evaluate to true, or
87
      //	Generate the transactions defined for this scenario and evaluate to true, or
82
      //	to false when any transaction cannot be generated.
88
      //	to false when any transaction cannot be generated.
83
      const bool generate (TransactionStream& stream, 	// The stream into which to generate.
89
      const bool generate (TransactionStream& stream, 	// The stream into which to generate.
84
      const bool &generateHeaders, 	// When true, the transaction stream contains transaction header.  Otherwise,
90
      const bool &generateHeaders, 	// When true, the transaction stream contains transaction header.  Otherwise,
Line 90... Line 96...
90
      //	Evaluate to the number of transactions contained in a batch.
96
      //	Evaluate to the number of transactions contained in a batch.
91
      const unsigned & getBatchSize () const;
97
      const unsigned & getBatchSize () const;
92
 
98
 
93
      //## Operation: getIteration%420460EA003C
99
      //## Operation: getIteration%420460EA003C
94
      //	Evaluate to the iteration for which this scenario is defined.
100
      //	Evaluate to the iteration for which this scenario is defined.
95
      const Iteration& getIteration () const;
101
      const Iteration & getIteration () const;
96
 
102
 
97
      //## Operation: getRepeatCount%42042C5D02F8
103
      //## Operation: getRepeatCount%42042C5D02F8
98
      //	Evaluate to the number of times that this scenario is played into the
104
      //	Evaluate to the number of times that this scenario is played into the
99
      //	transaction stream.
105
      //	transaction stream.
100
      const unsigned & getRepeatCount () const;
106
      const unsigned & getRepeatCount () const;
Line 117... Line 123...
117
      //	exist, create it.
123
      //	exist, create it.
118
      TransactionSpecification& getTransactionSpecification (const int &transaction, 	// The identity of the transaction.
124
      TransactionSpecification& getTransactionSpecification (const int &transaction, 	// The identity of the transaction.
119
      const std::string &payloadStructureName	// The name of the structure that describes the payload of this transaction.
125
      const std::string &payloadStructureName	// The name of the structure that describes the payload of this transaction.
120
      );
126
      );
121
 
127
 
-
 
128
      //## Operation: getVariable%425B47F50012
-
 
129
      //	Evaluate to the given variable.
-
 
130
      DefinedVariable& getVariable (const std::string &variableName	// The name of the variable.
-
 
131
      );
-
 
132
 
-
 
133
      //## Operation: isVariable%425B4B6A01C1
-
 
134
      //	Evaluate to true when the given symbol is a variable, otherwise evaluate to
-
 
135
      //	false.
-
 
136
      const bool isVariable (const std::string &symbol	// The symbol.
-
 
137
      ) const;
-
 
138
 
122
      //## Operation: setBatchSize%42042CF100D5
139
      //## Operation: setBatchSize%42042CF100D5
123
      //	Set the batch size and evaluate to the resulting value.
140
      //	Set the batch size and evaluate to the resulting value.
124
      const unsigned & setBatchSize (const unsigned &value	// The value.
141
      const unsigned & setBatchSize (const unsigned &value	// The value.
125
      );
142
      );
126
 
143
 
Line 211... Line 228...
211
      //	The collection of transactions in generation order.
228
      //	The collection of transactions in generation order.
212
      //## begin TestScenario::orderedTransactionCollection%4207105502F2.role preserve=no  private: TransactionSpecification {1 -> *RFHAN}
229
      //## begin TestScenario::orderedTransactionCollection%4207105502F2.role preserve=no  private: TransactionSpecification {1 -> *RFHAN}
213
      std::vector< TransactionSpecification * > m_orderedTransactionCollection;
230
      std::vector< TransactionSpecification * > m_orderedTransactionCollection;
214
      //## end TestScenario::orderedTransactionCollection%4207105502F2.role
231
      //## end TestScenario::orderedTransactionCollection%4207105502F2.role
215
 
232
 
-
 
233
      //## Association: TransactionTestManager::Symbol Table::<unnamed>%425B3A290039
-
 
234
      //## Role: TestScenario::variable%425B3A29023D
-
 
235
      //	The collection of variables defined for this scneario.
-
 
236
      //## Qualifier: variableName%425B3A580384; std::string
-
 
237
      //	The name of the variable.
-
 
238
      //## begin TestScenario::variable%425B3A29023D.role preserve=no  private: DefinedVariable {1 -> 1RFHgAN}
-
 
239
      std::map<std::string, DefinedVariable *> m_variable;
-
 
240
      //## end TestScenario::variable%425B3A29023D.role
-
 
241
 
216
    // Additional Private Declarations
242
    // Additional Private Declarations
217
      //## begin TestScenario%42030C2C00B8.private preserve=yes
243
      //## begin TestScenario%42030C2C00B8.private preserve=yes
218
      //## end TestScenario%42030C2C00B8.private
244
      //## end TestScenario%42030C2C00B8.private
219
 
245
 
220
  private: //## implementation
246
  private: //## implementation