Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/06/12 20:21:07 (13 years ago)
Author:
ascheibe
Message:

#1174 added support for TimeSpanValue for querying the execution time

Location:
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/RunCreation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/RunCreation/OKBRun.cs

    r7573 r7574  
    184184          v.Value = ((Data.IntValue)item.Value).Value;
    185185          value = v;
     186        } else if (item.Value is Data.TimeSpanValue) {
     187          TimeSpanValue v = new TimeSpanValue();
     188          v.Value = (long)((Data.TimeSpanValue)item.Value).Value.TotalSeconds;
     189          value = v;
    186190        } else if (item.Value is Data.PercentValue) {
    187191          PercentValue v = new PercentValue();
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/RunCreation/ServiceClient/RunCreationServiceClient.cs

    r7573 r7574  
    653653    [System.Runtime.Serialization.DataContractAttribute(Name="Value", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
    654654        "aTransfer")]
     655    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.BinaryValue))]
     656    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.LongValue))]
    655657    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.FloatValue))]
     658    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.TimeSpanValue))]
     659    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.IntValue))]
     660    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.BoolValue))]
    656661    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.DoubleValue))]
     662    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.PercentValue))]
    657663    [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.StringValue))]
    658     [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.PercentValue))]
    659     [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.BoolValue))]
    660     [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.IntValue))]
    661     [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.LongValue))]
    662     [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.OKB.RunCreation.BinaryValue))]
    663664    public partial class Value : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged
    664665    {
     
    730731    [System.Diagnostics.DebuggerStepThroughAttribute()]
    731732    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    732     [System.Runtime.Serialization.DataContractAttribute(Name="FloatValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
    733         "aTransfer")]
    734     public partial class FloatValue : HeuristicLab.Clients.OKB.RunCreation.Value
    735     {
    736        
    737         private float ValueField;
    738        
    739         [System.Runtime.Serialization.DataMemberAttribute()]
    740         public float Value
     733    [System.Runtime.Serialization.DataContractAttribute(Name="BinaryValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
     734        "aTransfer")]
     735    public partial class BinaryValue : HeuristicLab.Clients.OKB.RunCreation.Value
     736    {
     737       
     738        private byte[] ValueField;
     739       
     740        [System.Runtime.Serialization.DataMemberAttribute()]
     741        public byte[] Value
    741742        {
    742743            get
     
    746747            set
    747748            {
    748                 if ((this.ValueField.Equals(value) != true))
     749                if ((object.ReferenceEquals(this.ValueField, value) != true))
    749750                {
    750751                    this.ValueField = value;
     
    757758    [System.Diagnostics.DebuggerStepThroughAttribute()]
    758759    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    759     [System.Runtime.Serialization.DataContractAttribute(Name="DoubleValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
    760         "aTransfer")]
    761     public partial class DoubleValue : HeuristicLab.Clients.OKB.RunCreation.Value
    762     {
    763        
    764         private double ValueField;
    765        
    766         [System.Runtime.Serialization.DataMemberAttribute()]
    767         public double Value
     760    [System.Runtime.Serialization.DataContractAttribute(Name="LongValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
     761        "aTransfer")]
     762    public partial class LongValue : HeuristicLab.Clients.OKB.RunCreation.Value
     763    {
     764       
     765        private long ValueField;
     766       
     767        [System.Runtime.Serialization.DataMemberAttribute()]
     768        public long Value
    768769        {
    769770            get
     
    784785    [System.Diagnostics.DebuggerStepThroughAttribute()]
    785786    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    786     [System.Runtime.Serialization.DataContractAttribute(Name="StringValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
    787         "aTransfer")]
    788     public partial class StringValue : HeuristicLab.Clients.OKB.RunCreation.Value
    789     {
    790        
    791         private string ValueField;
    792        
    793         [System.Runtime.Serialization.DataMemberAttribute()]
    794         public string Value
     787    [System.Runtime.Serialization.DataContractAttribute(Name="FloatValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
     788        "aTransfer")]
     789    public partial class FloatValue : HeuristicLab.Clients.OKB.RunCreation.Value
     790    {
     791       
     792        private float ValueField;
     793       
     794        [System.Runtime.Serialization.DataMemberAttribute()]
     795        public float Value
    795796        {
    796797            get
     
    800801            set
    801802            {
    802                 if ((object.ReferenceEquals(this.ValueField, value) != true))
     803                if ((this.ValueField.Equals(value) != true))
    803804                {
    804805                    this.ValueField = value;
     
    811812    [System.Diagnostics.DebuggerStepThroughAttribute()]
    812813    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    813     [System.Runtime.Serialization.DataContractAttribute(Name="PercentValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
    814         "aTransfer")]
    815     public partial class PercentValue : HeuristicLab.Clients.OKB.RunCreation.Value
    816     {
    817        
    818         private double ValueField;
    819        
    820         [System.Runtime.Serialization.DataMemberAttribute()]
    821         public double Value
     814    [System.Runtime.Serialization.DataContractAttribute(Name="TimeSpanValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
     815        "aTransfer")]
     816    public partial class TimeSpanValue : HeuristicLab.Clients.OKB.RunCreation.Value
     817    {
     818       
     819        private long ValueField;
     820       
     821        [System.Runtime.Serialization.DataMemberAttribute()]
     822        public long Value
    822823        {
    823824            get
     
    838839    [System.Diagnostics.DebuggerStepThroughAttribute()]
    839840    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    840     [System.Runtime.Serialization.DataContractAttribute(Name="BoolValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
    841         "aTransfer")]
    842     public partial class BoolValue : HeuristicLab.Clients.OKB.RunCreation.Value
    843     {
    844        
    845         private bool ValueField;
    846        
    847         [System.Runtime.Serialization.DataMemberAttribute()]
    848         public bool Value
     841    [System.Runtime.Serialization.DataContractAttribute(Name="IntValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
     842        "aTransfer")]
     843    public partial class IntValue : HeuristicLab.Clients.OKB.RunCreation.Value
     844    {
     845       
     846        private int ValueField;
     847       
     848        [System.Runtime.Serialization.DataMemberAttribute()]
     849        public int Value
    849850        {
    850851            get
     
    865866    [System.Diagnostics.DebuggerStepThroughAttribute()]
    866867    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    867     [System.Runtime.Serialization.DataContractAttribute(Name="IntValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
    868         "aTransfer")]
    869     public partial class IntValue : HeuristicLab.Clients.OKB.RunCreation.Value
    870     {
    871        
    872         private int ValueField;
    873        
    874         [System.Runtime.Serialization.DataMemberAttribute()]
    875         public int Value
     868    [System.Runtime.Serialization.DataContractAttribute(Name="BoolValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
     869        "aTransfer")]
     870    public partial class BoolValue : HeuristicLab.Clients.OKB.RunCreation.Value
     871    {
     872       
     873        private bool ValueField;
     874       
     875        [System.Runtime.Serialization.DataMemberAttribute()]
     876        public bool Value
    876877        {
    877878            get
     
    892893    [System.Diagnostics.DebuggerStepThroughAttribute()]
    893894    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    894     [System.Runtime.Serialization.DataContractAttribute(Name="LongValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
    895         "aTransfer")]
    896     public partial class LongValue : HeuristicLab.Clients.OKB.RunCreation.Value
    897     {
    898        
    899         private long ValueField;
    900        
    901         [System.Runtime.Serialization.DataMemberAttribute()]
    902         public long Value
     895    [System.Runtime.Serialization.DataContractAttribute(Name="DoubleValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
     896        "aTransfer")]
     897    public partial class DoubleValue : HeuristicLab.Clients.OKB.RunCreation.Value
     898    {
     899       
     900        private double ValueField;
     901       
     902        [System.Runtime.Serialization.DataMemberAttribute()]
     903        public double Value
    903904        {
    904905            get
     
    919920    [System.Diagnostics.DebuggerStepThroughAttribute()]
    920921    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    921     [System.Runtime.Serialization.DataContractAttribute(Name="BinaryValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
    922         "aTransfer")]
    923     public partial class BinaryValue : HeuristicLab.Clients.OKB.RunCreation.Value
    924     {
    925        
    926         private byte[] ValueField;
    927        
    928         [System.Runtime.Serialization.DataMemberAttribute()]
    929         public byte[] Value
     922    [System.Runtime.Serialization.DataContractAttribute(Name="PercentValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
     923        "aTransfer")]
     924    public partial class PercentValue : HeuristicLab.Clients.OKB.RunCreation.Value
     925    {
     926       
     927        private double ValueField;
     928       
     929        [System.Runtime.Serialization.DataMemberAttribute()]
     930        public double Value
     931        {
     932            get
     933            {
     934                return this.ValueField;
     935            }
     936            set
     937            {
     938                if ((this.ValueField.Equals(value) != true))
     939                {
     940                    this.ValueField = value;
     941                    this.RaisePropertyChanged("Value");
     942                }
     943            }
     944        }
     945    }
     946   
     947    [System.Diagnostics.DebuggerStepThroughAttribute()]
     948    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     949    [System.Runtime.Serialization.DataContractAttribute(Name="StringValue", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.RunCreation.Dat" +
     950        "aTransfer")]
     951    public partial class StringValue : HeuristicLab.Clients.OKB.RunCreation.Value
     952    {
     953       
     954        private string ValueField;
     955       
     956        [System.Runtime.Serialization.DataMemberAttribute()]
     957        public string Value
    930958        {
    931959            get
Note: See TracChangeset for help on using the changeset viewer.