⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asmobserverswarm.h

📁 人工智能的matlab程序
💻 H
字号:
#import <analysis.h>
#import <simtoolsgui/GUISwarm.h>
#import <simtoolsgui.h>
#import <gui.h>
#import "ASMModelSwarm.h"
#import "ASMModelParams.h"
#import "Output.h"
#import <misc.h>


@interface ASMObserverSwarm: GUISwarm
{
  int displayFrequency; /*"update frequency for graphs"*/

  id <ActionGroup> displayActions; /*"set of actions necessary to keep display up to date"*/
  id <Schedule> displaySchedule; /*"Schedule that causes the displayActions to be carried out"*/

  Output * output; /*"An output object"*/
  ASMModelSwarm *asmModelSwarm; /*"Instance of ASMModelSwarm, where agents and the world are created and scheduled"*/
  BOOL writeParams; /*"Indicator that files including parameter values should be written"*/
  BOOL writeData;/*"Indicator that files including output values should be written"*/

  id <EZGraph> priceGraph; /*"Time plot of risk neutral and observed market price"*/
 
  id <EZGraph> volumeGraph; /*"Time plot of market trading volume"*/
 

  id <Histogram> positionHisto;/*"Histogram showing amount of stock held by each individual agent"*/
  //Histo *cashHisto; //A histogram for agent cash holdings.
  id <Histogram> relativeWealthHisto;/*"Histogram showing wealth of agents"*/

  //This is for comparing different agents.  But since there is 
  //currently only one agent this is not implemented.
  id <Graph> deviationGraph; /*"As of ASM-2.0, this was commented out in ASMObserverSwarm.m"*/
  id <Averager> deviationAverager; /*"ditto"*/
  id <GraphElement> deviationData;/*"ditto"*/
  
  id <ActiveGraph> deviationGrapher;/*"ditto"*/
}  

+ createBegin: aZone;
//Some member functions that talk straight to TKL/tk.  
//They are taken out here.
#if 0
- printPriceGraph;
- printVolumeGraph;
- printDeviationGraph;
- printRelWealthHisto;
#endif
- createEnd;
- _writeRawData_;

- buildObjects;

- priceGraphDeath_ : caller;
- volumeGraphDeath_ : caller;
- updateHistos;
- writeSimulationParams;
- (BOOL)ifParamWrite;
- expostParamWrite;

-(BOOL) toggleDataWrite;
- buildActions;
- activateIn: swarmContext;
-(void) drop;

@end






⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -