C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
OptimizationFunctions.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2using System.Runtime.Serialization;
3
6
8{
12 {
14 public static readonly string CLASS_COLLECTION_NAME = "projection_functions";
15
18 public override string collection_name => CLASS_COLLECTION_NAME;
19 }
20
24 {
26 public static readonly string CLASS_COLLECTION_NAME = "metrics_functions";
29 public override string collection_name => CLASS_COLLECTION_NAME;
30 }
31
33 public abstract class Function : StoredAPIResource
34 {
37 [DataMember(Order = 12)]
39 public string name { get; set; }
40
44 [DataMember(Order = 12)]
46 public string src { get; set; }
47
50 [DataMember(Order = 13)]
52 public string function { get; set; }
53
55 [DataMember(Order = 13)]
56 [NotNull]
59
61 protected Function()
62 {
64 }
65 }
66}
Describes a collection of resources which can be listed.
Base class used by all persistent resources.
Specifies that a property is generated by the server and should not be specified on the client side d...
Indicates that the property, if left null, will be given a default value by the server corresponding ...
The base class for custom optimization functions.
Dictionary< string, object > arguments_schema
The JSON Schema to validate usage against.
string src
The source code for the function body.
Function()
Construct a new ProjectionFunction.
string name
A unique identifier for this projection function assigned by the user. Cannot match the name of any o...
Functions to be used by the Optimization platform for computing objective and constraint values.
static readonly string CLASS_COLLECTION_NAME
The collection endpoint at which resources of this type reside on the server.
override string collection_name
The collection endpoint at which resources of this type reside on the server.
Functions to be used by the Optimization platform for manipulating the members of the population.
override string collection_name
The collection endpoint at which resources of this type reside on the server.
static readonly string CLASS_COLLECTION_NAME
The collection endpoint at which resources of this type reside on the server.