Lean  $LEAN_TAG$
QuantConnect.Optimizer.Objectives.ExtremumJsonConverter Class Reference

Class for converting string values to Maximization or Minimization strategy objects More...

Inheritance diagram for QuantConnect.Optimizer.Objectives.ExtremumJsonConverter:
[legend]

Protected Member Functions

override string Convert (Extremum value)
 Converts a Extremum object into a string More...
 
override Extremum Convert (string value)
 Converts a string into its corresponding Extremum object More...
 
- Protected Member Functions inherited from QuantConnect.Util.TypeChangeJsonConverter< Extremum, string >
virtual T Create (Type type, JToken token)
 Creates an instance of the un-projected type to be deserialized More...
 
abstract TResult Convert (T value)
 Convert the input value to a value to be serialized More...
 
abstract T Convert (TResult value)
 Converts the input value to be deserialized More...
 

Protected Attributes

override bool PopulateProperties => false
 Don't populate any property More...
 
- Protected Attributes inherited from QuantConnect.Util.TypeChangeJsonConverter< Extremum, string >
virtual bool PopulateProperties
 True will populate TResult object returned by Convert(TResult) with json properties More...
 

Additional Inherited Members

- Public Member Functions inherited from QuantConnect.Util.TypeChangeJsonConverter< Extremum, string >
override object ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 Reads the JSON representation of the object. More...
 
override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
 Writes the JSON representation of the object. More...
 
override bool CanConvert (Type objectType)
 Determines whether this instance can convert the specified object type. More...
 

Detailed Description

Class for converting string values to Maximization or Minimization strategy objects

Definition at line 24 of file ExtremumJsonConverter.cs.

Member Function Documentation

◆ Convert() [1/2]

override string QuantConnect.Optimizer.Objectives.ExtremumJsonConverter.Convert ( Extremum  value)
protected

Converts a Extremum object into a string

Definition at line 34 of file ExtremumJsonConverter.cs.

◆ Convert() [2/2]

override Extremum QuantConnect.Optimizer.Objectives.ExtremumJsonConverter.Convert ( string  value)
protected

Converts a string into its corresponding Extremum object

Parameters
value

Definition at line 45 of file ExtremumJsonConverter.cs.

Member Data Documentation

◆ PopulateProperties

override bool QuantConnect.Optimizer.Objectives.ExtremumJsonConverter.PopulateProperties => false
protected

Don't populate any property

Definition at line 29 of file ExtremumJsonConverter.cs.


The documentation for this class was generated from the following file: