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

📄 asmmodelswarm.h

📁 主要是介绍人工模拟股票市场的
💻 H
字号:
#import <objectbase/Swarm.h>
#import "BFagent.h"
#import "Specialist.h"
#import "Dividend.h"
#import "World.h"
#import "Output.h"
#import "ASMModelParams.h"


@interface ASMModelSwarm: Swarm
{
  int modelTime;    /*"An integer used to represent the current timestep"*/
  
  id <ActionGroup> periodActions; /*" An ActionGroup that collects things that are supposed to happen in a particular sequential order during each timestep "*/
  id <Schedule> periodSchedule; /*" Schedule on which we add period (repeating) actions, most importantly, the action group periodActions"*/
  id <Schedule> startupSchedule;
  
  id <List> agentList;       /*"A Swarm collection of agents "*/
  Specialist * specialist;      /*"Specialist who clears the market   "*/
  Dividend * dividendProcess; /*"Dividend process that generates dividends  "*/
  World * world;          /*"A World object, a price historian, really   "*/
  Output * output;         /*"An Output object   "*/
  
  BFParams * bfParams;          /*" A (BFParams) parameter object holding BFagent parameters"*/
  ASMModelParams * asmModelParams;  /*" A (ASMModelParms) parameter object holding parameters of Models"*/
  
                    
}


-createEnd;

- setParamsModel: (ASMModelParams *) modelParams BF: (BFParams *) bfp ; 
- setOutputObject: (Output *) obj;
 //pj: new param receiver 
- getAgentList;
- (int)getNumBFagents;
- (double)getInitialCash;
- (World *)getWorld;
- (Specialist *)getSpecialist;
- (Output *)getOutput;
- setBatchRandomSeed: (int)newSeed;

- buildObjects;
- writeParams;
- buildActions;
- activateIn: (id)swarmContext;
- doWarmupStep;

- periodStepDividend;
- periodStepPrice;


-(long int) getModelTime;

-(void) drop;

@end








⌨️ 快捷键说明

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