EmptySchedule.m
上传用户:shenzhenrh
上传日期:2013-05-12
资源大小:2904k
文件大小:1k
源码类别:

信息检索与抽取

开发平台:

Unix_Linux

  1. /*
  2. Name:         EmptySchedule.m
  3. Description:  EmptySchedule is used for testing of setKeepEmpty 
  4.               functionality.
  5. Test suite:   activity
  6. */
  7. #import <simtools.h>
  8. #import "ESSwarm.h"
  9. int 
  10. main (int argc, const char ** argv) 
  11. {
  12.   id theSwarm;
  13.   initSwarmBatch (argc, argv);
  14.   theSwarm = [ESSwarm create: globalZone];
  15.   [theSwarm buildActions];
  16.   [theSwarm activateIn: nil];
  17.   [[theSwarm getActivity] run];
  18.   
  19.   if (!ok)
  20.     {
  21.       fprintf (stderr, "Error in Schedule, action added to an empty schedule never performed, although setKeepEmpty was set to YES!n");
  22.       return 1;
  23.     }
  24.   return 0;
  25. }