class
Crowbar::SessionItem
- Crowbar::SessionItem
- Reference
- Object
Overview
Serializable record representing a single generated mutant in a session lifecycle. Retains full provenance, seed coordinates, diff metrics, and reward state.
Included Modules
- JSON::Serializable
Defined in:
crowbar/session_item.crConstructors
- .new(iteration : Int32, size : Int32, diff_count : Int32, mutators : Array(String), steps : Array(TransformationStep), seed : UInt64, seek_offset : Int64, reward : Float64 | Nil = nil, file_path : String | Nil = nil, timestamp : Time = Time.utc)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #diff_count : Int32
- #diff_count=(diff_count : Int32)
- #file_path : String | Nil
- #file_path=(file_path : String | Nil)
- #iteration : Int32
- #iteration=(iteration : Int32)
- #mutators : Array(String)
- #mutators=(mutators : Array(String))
- #positive_reward? : Bool
- #reward : Float64 | Nil
- #reward=(reward : Float64 | Nil)
- #rewarded? : Bool
- #seed : UInt64
- #seed=(seed : UInt64)
- #seek_offset : Int64
- #seek_offset=(seek_offset : Int64)
- #size : Int32
- #size=(size : Int32)
- #steps : Array(TransformationStep)
- #steps=(steps : Array(TransformationStep))
- #timestamp : Time
- #timestamp=(timestamp : Time)
Constructor Detail
def self.new(iteration : Int32, size : Int32, diff_count : Int32, mutators : Array(String), steps : Array(TransformationStep), seed : UInt64, seek_offset : Int64, reward : Float64 | Nil = nil, file_path : String | Nil = nil, timestamp : Time = Time.utc)
#