VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ceRandom.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: ceRandom.h,v $ $Revision: 1.3 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtCeRandom_H_
13 #define DtCeRandom_H_
14 
15 #include "vrfutil/readerWriter.h"
16 #include "vrfutil/rwString.h"
17 #include "vrfutil/rwReal.h"
18 #include "vrfutil/simCondExpr.h"
19 
20 const char DtCeRandomTypeName[] = "Random";
21 
22 
26 {
27  DtNetFloat64 myProbability;
28 };
29 
35 #include "vrfutil/vrfutilDefines.h"
37 {
38 public:
39 
41  DtCeRandom();
42 
44  DtCeRandom(DtReaderWriterRegistry* parentRegistry);
45 
47  DtCeRandom(const DtCeRandom& orig,
48  DtReaderWriterRegistry* parentRegistry = NULL);
49 
51  virtual ~DtCeRandom();
52 
54  DtCeRandom& operator=(const DtCeRandom& orig);
55 
57  virtual DtSimCondExpr* clone(DtReaderWriterRegistry* parentRegistry = NULL);
58 
60  virtual int type() const;
61 
63  virtual DtReal probability() const;
65  virtual void setProbability(DtReal arg);
66 
79  virtual DtString stringRep(int subExprIndex = DtSR_EXPR) const;
80 
83  virtual int netRepSize() const;
84 
86  virtual bool setFromNet(const char* contentBuffer,
87  unsigned contentSize);
88 
91  virtual bool setToNet();
92 
93  static DtSimCondExpr * creator();
94 
95 protected:
97 };
98 
99 #endif

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)