Skip to content

Commit e9dbb1f

Browse files
committed
Refactoring agent into reactive and cognitiveAgent
1 parent 8e9510c commit e9dbb1f

File tree

41 files changed

+1447
-892
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1447
-892
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Unreleased
44

5+
## 0.91 [](https://github.com/lmorisse/symu/compare/v0.9.1..v0.9.0) by [lmorisse](https://github.com/lmorisse)
6+
* Split Agent into ReactiveAgent and CognitiveAgent
7+
58
## 0.9 [](https://github.com/lmorisse/symu/compare/v0.9.0..v0.8.0) by [lmorisse](https://github.com/lmorisse)
69
* Remove InteractionSphereModel.FrequencyOfSphereUpdate
710
* Schedule Bug fixe

RELEASENOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Release notes
22

3+
## 0.9.1
4+
This release contains a refactoring of the agent class
5+
36
## 0.9.0
47
This release contains refactoring and minor bug fixes
58

Symu examples/SymuBeliefsAndInfluence/Classes/InfluencerAgent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace SymuBeliefsAndInfluence.Classes
2525
{
26-
public sealed class InfluencerAgent : Agent
26+
public sealed class InfluencerAgent : CognitiveAgent
2727
{
2828
public const byte ClassKey = SymuYellowPages.Actor;
2929

Symu examples/SymuBeliefsAndInfluence/Classes/PersonAgent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
namespace SymuBeliefsAndInfluence.Classes
2929
{
30-
public sealed class PersonAgent : Agent
30+
public sealed class PersonAgent : CognitiveAgent
3131
{
3232
public const byte ClassKey = SymuYellowPages.Actor;
3333

Symu examples/SymuGroupAndInteraction/Classes/ExampleEnvironment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public override void SetAgents()
8585
}
8686
}
8787

88-
private void SetKnowledge(Agent actor, IReadOnlyList<Knowledge> knowledges, int i)
88+
private void SetKnowledge(CognitiveAgent actor, IReadOnlyList<Knowledge> knowledges, int i)
8989
{
9090
switch (Knowledge)
9191
{

Symu examples/SymuGroupAndInteraction/Classes/GroupAgent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
namespace SymuGroupAndInteraction.Classes
1818
{
19-
public sealed class GroupAgent : Agent
19+
public sealed class GroupAgent : ReactiveAgent
2020
{
2121
public const byte ClassKey = 1;
2222

Symu examples/SymuGroupAndInteraction/Classes/PersonAgent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
namespace SymuGroupAndInteraction.Classes
2323
{
24-
public sealed class PersonAgent : Agent
24+
public sealed class PersonAgent : CognitiveAgent
2525
{
2626
public const byte ClassKey = SymuYellowPages.Actor;
2727

Symu examples/SymuLearnAndForget/Classes/ExpertAgent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
namespace SymuLearnAndForget.Classes
2424
{
25-
public sealed class ExpertAgent : Agent
25+
public sealed class ExpertAgent : CognitiveAgent
2626
{
2727
public const byte ClassKey = 2;
2828

Symu examples/SymuLearnAndForget/Classes/LearnAgent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
namespace SymuLearnAndForget.Classes
2626
{
27-
public class LearnAgent : Agent
27+
public class LearnAgent : CognitiveAgent
2828
{
2929
public const byte ClassKey = 2;
3030

Symu examples/SymuMessageAndTask/Classes/GroupAgent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
namespace SymuMessageAndTask.Classes
2323
{
24-
public sealed class GroupAgent : Agent
24+
public sealed class GroupAgent : ReactiveAgent
2525
{
2626
public const byte ClassKey = 1;
2727

0 commit comments

Comments
 (0)