Posted By

meepz on 08/18/10


Tagged


Versions (?)

SimulationConfigParams.as


 / Published in: ActionScript 3
 

This is the config file I am writing all of my settings to.

  1. package configfiles {
  2.  
  3. [Bindable]
  4. public class SimulationConfigParams {
  5.  
  6. protected var _beginDate:Date;
  7. protected var _endDate:Date;
  8. protected var _legalEntityVariance:int;
  9. protected var _slowMinDelay:int;
  10. protected var _slowDelayVariance:int;
  11. protected var _defaultMinDelay:int;
  12. protected var _defaultDelayVariance:int;
  13. protected var _fastMinDelay:int;
  14. protected var _fastDelayVariance:int;
  15. protected var _orgCreationOdds:int;
  16. protected var _tradeRoundingAmount:int;
  17. protected var _tradeThreshold:int;
  18. protected var _tradeReuseRate:int;
  19. protected var _tradeExposureNotional:int;
  20. protected var _maxNumMarginAgreements:int;
  21. protected var _marginCallprocessFrequency:int;
  22.  
  23.  
  24. public function SimulationConfigParams() {
  25. _beginDate;
  26. }
  27.  
  28. public function get endDate():Date {
  29. return _endDate;
  30. }
  31.  
  32. public function set endDate(value:Date):void {
  33. if (value != null) {
  34. value.hours=16;
  35. _endDate=value;
  36. } else {
  37. _endDate=null;
  38. }
  39. }
  40.  
  41. public function get beginDate():Date {
  42. return _beginDate;
  43. }
  44.  
  45. public function set beginDate(value:Date):void {
  46. if (value != null) {
  47. value.hours=8;
  48. _beginDate=value;
  49. } else {
  50. _beginDate=null;
  51. }
  52. }
  53.  
  54. public function get legalEntityVariance():int {
  55. return _legalEntityVariance;
  56. }
  57.  
  58. public function set legalEntityVariance(value:int):void {
  59. _legalEntityVariance=value;
  60. }
  61.  
  62. public function get defaultMinDelay():int {
  63. return _defaultMinDelay;
  64. }
  65.  
  66. public function set defaultMinDelay(value:int):void {
  67. _defaultMinDelay=value;
  68. }
  69.  
  70. public function get orgCreationOdds():int {
  71. return _orgCreationOdds;
  72. }
  73.  
  74. public function set orgCreationOdds(value:int):void {
  75. _orgCreationOdds=value;
  76. }
  77.  
  78. public function get slowMinDelay():int {
  79. return _slowMinDelay;
  80. }
  81.  
  82. public function set slowMinDelay(value:int):void {
  83. _slowMinDelay=value;
  84. }
  85.  
  86. public function get slowDelayVariance():int {
  87. return _slowDelayVariance;
  88. }
  89.  
  90. public function set slowDelayVariance(value:int):void {
  91. _slowDelayVariance=value;
  92. }
  93.  
  94. public function get fastMinDelay():int {
  95. return _fastMinDelay;
  96. }
  97.  
  98. public function set fastMinDelay(value:int):void {
  99. _fastMinDelay=value;
  100. }
  101.  
  102. public function get fastDelayVariance():int {
  103. return _fastDelayVariance;
  104. }
  105.  
  106. public function set fastDelayVariance(value:int):void {
  107. _fastDelayVariance=value;
  108. }
  109.  
  110. public function get defaultDelayVariance():int {
  111. return _defaultDelayVariance;
  112. }
  113.  
  114. public function set defaultDelayVariance(value:int):void {
  115. _defaultDelayVariance=value;
  116. }
  117.  
  118. public function get maxNumMarginAgreements():int {
  119. return _maxNumMarginAgreements;
  120. }
  121.  
  122. public function set maxNumMarginAgreements(value:int):void {
  123. _maxNumMarginAgreements=value;
  124. }
  125.  
  126. public function get tradeReuseRate():int {
  127. return _tradeReuseRate;
  128. }
  129.  
  130. public function set tradeReuseRate(value:int):void {
  131. _tradeReuseRate=value;
  132. }
  133.  
  134. public function get tradeExposureNotional():int {
  135. return _tradeExposureNotional;
  136. }
  137.  
  138. public function set tradeExposureNotional(value:int):void {
  139. _tradeExposureNotional=value;
  140. }
  141.  
  142. public function get tradeThreshold():int {
  143. return _tradeThreshold;
  144. }
  145.  
  146. public function set tradeThreshold(value:int):void {
  147. _tradeThreshold=value;
  148. }
  149.  
  150. public function get tradeRoundingAmount():int {
  151. return _tradeRoundingAmount;
  152. }
  153.  
  154. public function set tradeRoundingAmount(value:int):void {
  155. _tradeRoundingAmount=value;
  156. }
  157.  
  158. public function get marginCallprocessFrequency():int {
  159. return _marginCallprocessFrequency;
  160. }
  161.  
  162. public function set marginCallprocessFrequency(value:int):void {
  163. _marginCallprocessFrequency=value;
  164. }
  165.  
  166. }
  167. }

Report this snippet  

You need to login to post a comment.