majitaki / OSM2018

0 stars 0 forks source link

Algoのインターフェース部分の作成 #1

Closed majitaki closed 6 years ago

majitaki commented 6 years ago
I_GeneratingCandidateWeights gcw = new AAT_GeneratingCandidateWeights();
I_EstimatingAwarenesRates ear = new AAT_EstimatingAwarenesRates();
I_SelectingWeightsStrategies sws = new AAT_SelectingWeightsStrategies();

I_Algo algo = new AAT_Algo(gcw, ear, sws);

このような設計にすると派生アルゴリズムを設計変更なしに表現可能

majitaki commented 6 years ago
algo.Initialize(network, agentset)
algo.RunRound()
algo.PlayStep()
majitaki commented 6 years ago
algo.Initialize(network, agentset)
algo.RunRound()
algo.PlayStep()
majitaki commented 6 years ago
  void Initialize(I_Network network, I_AgentSet agent_set);
        void RunRound(I_Network network, I_AgentSet agent_set);
        void PlayStep(I_Network network, I_AgentSet agent_set);