struct Crowbar::CandidateState

Overview

Serializable state for an evolutionary corpus candidate

Included Modules

Defined in:

crowbar/session.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(buffer_b64 : String, fitness : Float64 = 0.0, generation : Int64 = 0_i64, mutation_history : Array(String) = [] of String, feature : String | Nil = nil, coverage_hash : UInt64 | Nil = nil) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

Instance Method Detail

def buffer_b64 : String #

def buffer_b64=(buffer_b64 : String) #

def coverage_hash : UInt64 | Nil #

def coverage_hash=(coverage_hash : UInt64 | Nil) #

def feature : String | Nil #

def feature=(feature : String | Nil) #

def fitness : Float64 #

def fitness=(fitness : Float64) #

def generation : Int64 #

def generation=(generation : Int64) #

def mutation_history : Array(String) #

def mutation_history=(mutation_history : Array(String)) #