Changeset 14196 for trunk/sources/HeuristicLab.ExtLibs
- Timestamp:
- 07/23/16 08:58:27 (8 years ago)
- Location:
- trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.0.9
- Files:
-
- 5 deleted
- 10 edited
- 5 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.0.9/HeuristicLab.SimSharp-3.0.9/HeuristicLab.SimSharp-3.0.9.csproj
r14195 r14196 9 9 <AppDesignerFolder>Properties</AppDesignerFolder> 10 10 <RootNamespace>HeuristicLab.SimSharp</RootNamespace> 11 <AssemblyName>HeuristicLab.SimSharp-3.0. 7</AssemblyName>11 <AssemblyName>HeuristicLab.SimSharp-3.0.9</AssemblyName> 12 12 <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> 13 13 <FileAlignment>512</FileAlignment> … … 92 92 <Private>False</Private> 93 93 </ProjectReference> 94 <ProjectReference Include="..\SimSharp-3.0. 7\SimSharp-3.0.7.csproj">94 <ProjectReference Include="..\SimSharp-3.0.9\SimSharp-3.0.9.csproj"> 95 95 <Project>{9fe9c740-7859-4d01-ad07-7d4e15a6320b}</Project> 96 <Name>SimSharp-3.0. 7</Name>96 <Name>SimSharp-3.0.9</Name> 97 97 </ProjectReference> 98 98 </ItemGroup> 99 99 <ItemGroup> 100 <Content Include="SimSharp-3.0. 7License.txt">100 <Content Include="SimSharp-3.0.9 License.txt"> 101 101 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 102 102 </Content> -
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.0.9/HeuristicLab.SimSharp-3.0.9/Plugin.cs.frame
r14185 r14196 23 23 24 24 namespace HeuristicLab.SimSharp { 25 [Plugin("HeuristicLab.SimSharp", "Transport plugin for the simulation framework Sim#", "3.0. 7.$WCREV$")]26 [PluginFile("HeuristicLab.SimSharp-3.0. 7.dll", PluginFileType.Assembly)]27 [PluginFile("SimSharp-3.0. 7.dll", PluginFileType.Assembly)]28 [PluginFile("SimSharp-3.0. 7License.txt", PluginFileType.License)]25 [Plugin("HeuristicLab.SimSharp", "Transport plugin for the simulation framework Sim#", "3.0.9.$WCREV$")] 26 [PluginFile("HeuristicLab.SimSharp-3.0.9.dll", PluginFileType.Assembly)] 27 [PluginFile("SimSharp-3.0.9.dll", PluginFileType.Assembly)] 28 [PluginFile("SimSharp-3.0.9 License.txt", PluginFileType.License)] 29 29 public class HeuristicLabSimSharpPlugin : PluginBase { 30 30 } -
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.0.9/HeuristicLab.SimSharp-3.0.9/Properties/AssemblyInfo.cs.frame
r14171 r14196 5 5 // set of attributes. Change these attribute values to modify the information 6 6 // associated with an assembly. 7 [assembly: AssemblyTitle("HeuristicLab.SimSharp-3.0. 7")]7 [assembly: AssemblyTitle("HeuristicLab.SimSharp-3.0.9")] 8 8 [assembly: AssemblyDescription("Transport plugin for the simulation framework Sim#")] 9 9 [assembly: AssemblyConfiguration("")] … … 32 32 // by using the '*' as shown below: 33 33 // [assembly: AssemblyVersion("1.0.*")] 34 [assembly: AssemblyVersion("3.0. 7.0")]35 [assembly: AssemblyFileVersion("3.0. 7.$WCREV$")]34 [assembly: AssemblyVersion("3.0.9.0")] 35 [assembly: AssemblyFileVersion("3.0.9.$WCREV$")] -
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.0.9/SimSharp-3.0.9/Core/Environment.cs
r14185 r14196 109 109 110 110 public virtual void Reset(int randomSeed) { 111 ProcessedEvents = 0; 111 112 Now = StartDate; 112 113 Random = new SystemRandom(randomSeed); -
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.0.9/SimSharp-3.0.9/Core/Events/AllOf.cs
r12657 r14196 1 1 #region License Information 2 /* SimSharp - A .NET port of SimPy, discrete event simulation framework 3 Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 5 This program is free software: you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation, either version 3 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>.*/ 17 #endregion 18 2 19 using System.Collections.Generic; 3 20 -
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.0.9/SimSharp-3.0.9/Core/Events/AnyOf.cs
r12657 r14196 1 1 #region License Information 2 /* SimSharp - A .NET port of SimPy, discrete event simulation framework 3 Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 5 This program is free software: you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation, either version 3 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>.*/ 17 #endregion 18 2 19 using System.Collections.Generic; 3 20 -
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.0.9/SimSharp-3.0.9/Core/Resources/PreemptiveResource.cs
r14185 r14196 89 89 90 90 protected virtual void DoRelease(Release release) { 91 Users.Remove(release.Request); 91 if (!Users.Remove(release.Request)) { 92 var preemptRequest = release.Request as PreemptiveRequest; 93 if (preemptRequest != null) { 94 var current = RequestQueue[preemptRequest.Priority].First; 95 while (current != null && current.Value != release.Request) 96 current = current.Next; 97 if (current != null) RequestQueue[preemptRequest.Priority].Remove(current); 98 } 99 } 92 100 release.Succeed(); 93 101 } -
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.0.9/SimSharp-3.0.9/Core/Resources/PriorityResource.cs
r14185 r14196 19 19 using System; 20 20 using System.Collections.Generic; 21 using System.Linq;22 21 23 22 namespace SimSharp { … … 32 31 protected Environment Environment { get; private set; } 33 32 34 protected SortedList<int, Queue<PriorityRequest>> RequestQueue { get; private set; }33 protected SortedList<int, LinkedList<PriorityRequest>> RequestQueue { get; private set; } 35 34 protected Queue<Release> ReleaseQueue { get; private set; } 36 35 protected HashSet<Request> Users { get; private set; } … … 40 39 Environment = environment; 41 40 Capacity = capacity; 42 RequestQueue = new SortedList<int, Queue<PriorityRequest>>();41 RequestQueue = new SortedList<int, LinkedList<PriorityRequest>>(); 43 42 ReleaseQueue = new Queue<Release>(); 44 43 Users = new HashSet<Request>(); … … 48 47 var request = new PriorityRequest(Environment, TriggerRelease, DisposeCallback, priority); 49 48 if (!RequestQueue.ContainsKey(priority)) 50 RequestQueue.Add(priority, new Queue<PriorityRequest>());51 RequestQueue[priority]. Enqueue(request);49 RequestQueue.Add(priority, new LinkedList<PriorityRequest>()); 50 RequestQueue[priority].AddLast(request); 52 51 TriggerRequest(); 53 52 return request; … … 74 73 75 74 protected virtual void DoRelease(Release release) { 76 Users.Remove(release.Request); 75 if (!Users.Remove(release.Request)) { 76 var prioRequest = release.Request as PriorityRequest; 77 if (prioRequest != null) { 78 var current = RequestQueue[prioRequest.Priority].First; 79 while (current != null && current.Value != release.Request) 80 current = current.Next; 81 if (current != null) RequestQueue[prioRequest.Priority].Remove(current); 82 } 83 } 77 84 release.Succeed(); 78 85 } … … 83 90 var requests = entry.Value; 84 91 while (requests.Count > 0) { 85 var req = requests. Peek();92 var req = requests.First.Value; 86 93 DoRequest(req); 87 94 if (req.IsTriggered) { 88 requests. Dequeue();95 requests.RemoveFirst(); 89 96 } else { 90 97 cascade = true; -
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.0.9/SimSharp-3.0.9/Core/Resources/Resource.cs
r14185 r14196 19 19 using System; 20 20 using System.Collections.Generic; 21 using System.Linq;22 21 23 22 namespace SimSharp { … … 32 31 protected Environment Environment { get; private set; } 33 32 34 protected Queue<Request> RequestQueue { get; private set; }33 protected LinkedList<Request> RequestQueue { get; private set; } 35 34 protected Queue<Release> ReleaseQueue { get; private set; } 36 35 protected HashSet<Request> Users { get; private set; } … … 40 39 Environment = environment; 41 40 Capacity = capacity; 42 RequestQueue = new Queue<Request>();41 RequestQueue = new LinkedList<Request>(); 43 42 ReleaseQueue = new Queue<Release>(); 44 43 Users = new HashSet<Request>(); … … 47 46 public virtual Request Request() { 48 47 var request = new Request(Environment, TriggerRelease, DisposeCallback); 49 RequestQueue. Enqueue(request);48 RequestQueue.AddLast(request); 50 49 TriggerRequest(); 51 50 return request; … … 61 60 protected virtual void DisposeCallback(Event @event) { 62 61 var request = @event as Request; 63 if (request != null) Release(request); 62 if (request != null) { 63 Release(request); 64 } 64 65 } 65 66 … … 72 73 73 74 protected virtual void DoRelease(Release release) { 74 Users.Remove(release.Request); 75 if (!Users.Remove(release.Request)) { 76 var current = RequestQueue.First; 77 while (current != null && current.Value != release.Request) 78 current = current.Next; 79 if (current != null) RequestQueue.Remove(current); 80 } 75 81 release.Succeed(); 76 82 } … … 78 84 protected virtual void TriggerRequest(Event @event = null) { 79 85 while (RequestQueue.Count > 0) { 80 var request = RequestQueue. Peek();86 var request = RequestQueue.First.Value; 81 87 DoRequest(request); 82 88 if (request.IsTriggered) { 83 RequestQueue. Dequeue();89 RequestQueue.RemoveFirst(); 84 90 } else break; 85 91 } -
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.0.9/SimSharp-3.0.9/Properties/AssemblyInfo.cs
r14185 r14196 28 28 [assembly: AssemblyCompany("HEAL")] 29 29 [assembly: AssemblyProduct("SimSharp")] 30 [assembly: AssemblyCopyright("Copyright © HEAL 201 5")]30 [assembly: AssemblyCopyright("Copyright © HEAL 2016")] 31 31 [assembly: AssemblyTrademark("")] 32 32 [assembly: AssemblyCulture("")] … … 50 50 // by using the '*' as shown below: 51 51 // [assembly: AssemblyVersion("1.0.*")] 52 [assembly: AssemblyVersion("3.0. 7.0")]53 [assembly: AssemblyFileVersion("3.0. 7.0")]52 [assembly: AssemblyVersion("3.0.9.0")] 53 [assembly: AssemblyFileVersion("3.0.9.0")] -
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.0.9/SimSharp-3.0.9/Random/IRandom.cs
r14185 r14196 1 2 #region License Information 1 #region License Information 3 2 /* SimSharp - A .NET port of SimPy, discrete event simulation framework 4 3 Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) -
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.0.9/SimSharp-3.0.9/SimSharp-3.0.9.csproj
r14195 r14196 9 9 <AppDesignerFolder>Properties</AppDesignerFolder> 10 10 <RootNamespace>SimSharp</RootNamespace> 11 <AssemblyName>SimSharp-3.0. 7</AssemblyName>11 <AssemblyName>SimSharp-3.0.9</AssemblyName> 12 12 <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> 13 13 <FileAlignment>512</FileAlignment> … … 34 34 <ErrorReport>prompt</ErrorReport> 35 35 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 36 <DocumentationFile>bin\Release\SimSharp-3.0. 7.xml</DocumentationFile>36 <DocumentationFile>bin\Release\SimSharp-3.0.9.xml</DocumentationFile> 37 37 </PropertyGroup> 38 38 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> … … 48 48 <OutputPath>bin\x64\Release\</OutputPath> 49 49 <DefineConstants>TRACE</DefineConstants> 50 <DocumentationFile>bin\Release\SimSharp-3.0. 7.xml</DocumentationFile>50 <DocumentationFile>bin\Release\SimSharp-3.0.9.xml</DocumentationFile> 51 51 <Optimize>true</Optimize> 52 52 <DebugType>pdbonly</DebugType> … … 67 67 <OutputPath>bin\x86\Release\</OutputPath> 68 68 <DefineConstants>TRACE</DefineConstants> 69 <DocumentationFile>bin\Release\SimSharp-3.0. 7.xml</DocumentationFile>69 <DocumentationFile>bin\Release\SimSharp-3.0.9.xml</DocumentationFile> 70 70 <Optimize>true</Optimize> 71 71 <DebugType>pdbonly</DebugType>
Note: See TracChangeset
for help on using the changeset viewer.