protected virtual SocialScenario CreateTestProfile(
     uint testType, FoodSharingGPAgent agent, FoodSharingEnvironment environment, string envConfigFile,
     uint numAgents, uint maxStates, bool strongerAgent, string agentImgPrefix, uint numFoodResources,
     uint maxStepsWithoutEating, double hungryReward)
 {
     return(new FoodSharingScenario(agent, environment, this)
     {
         FilePath = this.GetFilePath(testType),
         EnvironmentConfigFile = this.GetEnvironmentFilePath(envConfigFile),
         TestMeasuresFilePath = this.GetTestMeasuresFilePath(testType),
         NumAgents = numAgents,
         MaxStates = maxStates,
         StrongerAgent = strongerAgent,
         AgentImgPrefix = agentImgPrefix,
         NumFoodResources = numFoodResources,
         MaxStepsWithoutEating = maxStepsWithoutEating,
         HungryReward = hungryReward
     });
 }
示例#2
0
 public SocialGPMotivationManager(FoodSharingGPAgent agent, double[] constants)
     : base(agent, constants)
 {
 }