-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ResourceNetwork, merge networkPortfolio
- Loading branch information
Showing
16 changed files
with
979 additions
and
560 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#region Licence | ||
|
||
// Description: SymuBiz - Symu | ||
// Website: https://symu.org | ||
// Copyright: (c) 2020 laurent morisseau | ||
// License : the program is distributed under the terms of the GNU General Public License | ||
|
||
#endregion | ||
|
||
#region using directives | ||
|
||
using Symu.Common.Interfaces; | ||
using Symu.Repository.Networks.Resources; | ||
|
||
#endregion | ||
|
||
namespace Symu.Repository.Entity | ||
{ | ||
/// <summary> | ||
/// Define who is using an object and how | ||
/// </summary> | ||
public class Portfolio : IAgentResource | ||
{ | ||
public Portfolio(IAgentId agentId, byte typeOfUse, float allocation): base(agentId, typeOfUse, allocation) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#region Licence | ||
|
||
// Description: SymuBiz - Symu | ||
// Website: https://symu.org | ||
// Copyright: (c) 2020 laurent morisseau | ||
// License : the program is distributed under the terms of the GNU General Public License | ||
|
||
#endregion | ||
|
||
using Symu.Classes.Agents; | ||
using Symu.Common.Interfaces; | ||
using Symu.Repository.Networks.Resources; | ||
|
||
namespace Symu.Repository.Entity | ||
{ | ||
/// <summary> | ||
/// Define who is using an object and how | ||
/// </summary> | ||
public class Resource : IResource | ||
{ | ||
|
||
private readonly AgentId _agentId; | ||
public Resource(IAgentId agentId) | ||
{ | ||
_agentId = (AgentId)agentId; | ||
} | ||
public Resource(ushort id, byte classId) | ||
{ | ||
_agentId = new AgentId(id, classId); | ||
} | ||
|
||
/// <summary> | ||
/// The unique agentId of the resource | ||
/// </summary> | ||
public IAgentId Id => _agentId; | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 0 additions & 73 deletions
73
SourceCode/Symu/Repository/Networks/Portfolio/NetworkPortfolio.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.