- Timestamp:
- 03/07/19 17:42:41 (6 years ago)
- Location:
- branches/2925_AutoDiffForDynamicalModels
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2925_AutoDiffForDynamicalModels
- Property svn:mergeinfo changed
-
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Scripting
- Property svn:mergeinfo deleted
-
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Scripting/3.3/CompilationException.cs
r15583 r16662 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Scripting/3.3/ExecutableScript.cs
r15583 r16662 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using HeuristicLab.Common; 25 25 using HeuristicLab.Core; 26 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;26 using HEAL.Attic; 27 27 28 28 namespace HeuristicLab.Scripting { 29 29 [Item("Executable Script", "An executable script.")] 30 [Storable Class]30 [StorableType("206BFDFE-A829-424E-BFAD-BB7993830325")] 31 31 public abstract class ExecutableScript : Script { 32 32 private Thread scriptThread; … … 47 47 #region Construction & Cloning 48 48 [StorableConstructor] 49 protected ExecutableScript( bool deserializing) : base(deserializing) { }49 protected ExecutableScript(StorableConstructorFlag _) : base(_) { } 50 50 protected ExecutableScript(ExecutableScript original, Cloner cloner) 51 51 : base(original, cloner) { -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Scripting/3.3/HeuristicLab.Scripting-3.3.csproj
r13080 r16662 10 10 <RootNamespace>HeuristicLab.Scripting</RootNamespace> 11 11 <AssemblyName>HeuristicLab.Scripting-3.3</AssemblyName> 12 <TargetFrameworkVersion>v4. 5</TargetFrameworkVersion>12 <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> 13 13 <FileAlignment>512</FileAlignment> 14 14 <TargetFrameworkProfile /> … … 151 151 </EmbeddedResource> 152 152 </ItemGroup> 153 <ItemGroup> 154 <Reference Include="HEAL.Attic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 155 <SpecificVersion>False</SpecificVersion> 156 <HintPath>..\..\bin\HEAL.Attic.dll</HintPath> 157 <Private>False</Private> 158 </Reference> 159 </ItemGroup> 153 160 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 154 161 <PropertyGroup> -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Scripting/3.3/Plugin.cs.frame
r15589 r16662 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 29 29 [PluginDependency("HeuristicLab.Common.Resources", "3.3")] 30 30 [PluginDependency("HeuristicLab.Core", "3.3")] 31 [PluginDependency("HeuristicLab. Persistence", "3.3")]31 [PluginDependency("HeuristicLab.Attic", "1.0")] 32 32 public class HeuristicLabScriptingPlugin : PluginBase { 33 33 } -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Scripting/3.3/Properties/AssemblyInfo.cs.frame
r15589 r16662 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Scripting/3.3/Script.cs
r15583 r16662 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 32 32 using HeuristicLab.Common.Resources; 33 33 using HeuristicLab.Core; 34 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;34 using HEAL.Attic; 35 35 using Microsoft.CSharp; 36 36 37 37 namespace HeuristicLab.Scripting { 38 [Storable Class]38 [StorableType("0FA4F218-E1F5-4C09-9C2F-12B32D4EC373")] 39 39 public abstract class Script : NamedItem, IProgrammableItem { 40 40 #region Fields & Properties … … 66 66 #region Construction & Initialization 67 67 [StorableConstructor] 68 protected Script( bool deserializing) : base(deserializing) { }68 protected Script(StorableConstructorFlag _) : base(_) { } 69 69 protected Script(Script original, Cloner cloner) 70 70 : base(original, cloner) { -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Scripting/3.3/Scripts/CSharp/CSharpScript.cs
r15583 r16662 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Attic; 28 28 29 29 namespace HeuristicLab.Scripting { 30 30 [Item("C# Script", "An empty C# script.")] 31 31 [Creatable(CreatableAttribute.Categories.Scripts, Priority = 100)] 32 [Storable Class]32 [StorableType("1630933C-AB5B-44EC-A967-C299CC57E4E3")] 33 33 public class CSharpScript : ExecutableScript, IStorableContent { 34 34 #region Fields & Properties … … 49 49 #region Construction & Cloning 50 50 [StorableConstructor] 51 protected CSharpScript( bool deserializing) : base(deserializing) { }51 protected CSharpScript(StorableConstructorFlag _) : base(_) { } 52 52 protected CSharpScript(CSharpScript original, Cloner cloner) 53 53 : base(original, cloner) { -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Scripting/3.3/Scripts/CSharp/CSharpScriptBase.cs
r15583 r16662 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Scripting/3.3/Scripts/Templates/CSharpScriptTemplate.cs
r11825 r16662 6 6 // use 'variables' to work with IEnumerable<T> extension methods on the script's variable store 7 7 8 using System;9 using System.Linq;10 using System.Collections.Generic;11 8 12 using HeuristicLab.Core;13 using HeuristicLab.Common;14 9 //using HeuristicLab.Collections; 15 10 //using HeuristicLab.Data; -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Scripting/3.3/VariableStore.cs
r15583 r16662 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 27 27 using HeuristicLab.Common.Resources; 28 28 using HeuristicLab.Core; 29 using HeuristicLab.Persistence.Core; 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using HEAL.Attic; 31 30 using HeuristicLab.Persistence.Default.Xml; 32 31 33 32 namespace HeuristicLab.Scripting { 34 33 [Item("VariableStore", "Represents a variable store.")] 35 [Storable Class]34 [StorableType("DDE415E7-99FD-4C10-9B5E-63334876FFDE")] 36 35 public class VariableStore : ObservableDictionary<string, object>, IItem { 37 36 #region Properties … … 55 54 #region Constructors & Cloning 56 55 [StorableConstructor] 57 protected VariableStore( bool deserializing) : base(deserializing) { }56 protected VariableStore(StorableConstructorFlag _) : base(_) { } 58 57 protected VariableStore(VariableStore original, Cloner cloner) { 59 58 cloner.RegisterClonedObject(original, this); … … 82 81 protected T CloneByPersistence<T>(T value) { 83 82 using (var serializerStream = new MemoryStream()) { 84 XmlGenerator.Serialize(value, serializerStream); 83 var serializer = new ProtoBufSerializer(); 84 serializer.Serialize(value, serializerStream, disposeStream: false); 85 85 var bytes = serializerStream.GetBuffer(); 86 86 using (var deserializerStream = new MemoryStream(bytes)) { 87 return XmlParser.Deserialize<T>(deserializerStream);87 return (T)serializer.Deserialize(deserializerStream); 88 88 } 89 89 }
Note: See TracChangeset
for help on using the changeset viewer.