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

📄 output.h

📁 人工智能的matlab程序
💻 H
字号:
// Artificial Stock Market Swarm Version Output File Interface

#import <stdio.h>
#import <stdarg.h>
#import <time.h>
#import <objectbase.h>
#import <objectbase/SwarmObject.h>
#import "World.h"
#import "Specialist.h"
#import <simtools.h>
#import <defobj.h>
#import <analysis.h>

@interface Output: SwarmObject
{
  @private
    BOOL dataFileExists; /*"Indicator that dataFile initialization has alreadyoccurred"*/

  World * outputWorld;  /*"Reference to the world, where we can get data!"*/
  Specialist * outputSpecialist; /*" Reference to the Specialist object, where we can get data!"*/
  id archiver, dataArchiver; /*"hdf5 or LISP objects, depending on the CPP flags"*/
  
  time_t runTime; /*"Return from the systems time() function"*/
  char timeString[100];/*"a verbose description of current time"*/
  
  FILE * dataOutputFile; /*"FILE handle for output from C style fprintf"*/
  id <EZGraph> hdfWriter; /*"EZGraph object that is used only to create hdf5 formatted output"*/
  id <HDF5> hdf5container; /*"HDF5 data container object used by hdfWriter"*/
  
  @public
    int currentTime; /*"current time of simulation"*/
 
  // These IVARs were previously used for record keeping, but they
  // are not needed now. Could reinstate and add "self" to the
  // objects that the archiver dumps out.				       
  // double price; /*"current price"*/
  // double dividend; /*"current dividend"*/
  // double volume; /*"current volume"*/

}

-setSpecialist: (Specialist *)theSpec;

-setWorld: (World *)theWorld;

- writeParams: modelParam BFAgent: bfParms Time: (long int) t;

-prepareOutputFile;

-(void) initializeHDFWriter;

-writeData;

-(void) drop;

@end




⌨️ 快捷键说明

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