result

package
v0.7.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FloatResult

type FloatResult struct {
	Min  float64 `json:"min"`
	Max  float64 `json:"max"`
	Mean float64 `json:"mean"`
	SD   float64 `json:"sd"`
}

type IntResult

type IntResult struct {
	Min  int     `json:"min"`
	Max  int     `json:"max"`
	Mean float64 `json:"mean"`
	SD   float64 `json:"sd"`
}

type Summary

type Summary struct {
	//version stuff
	V2                    bool                            `json:"v2"`
	Version               string                          `json:"version"`
	BuildDate             string                          `json:"build_date"`
	IsDamageMode          bool                            `json:"is_damage_mode"`
	ActiveChar            string                          `json:"active_char"`
	CharNames             []string                        `json:"char_names"`
	DamageByChar          []map[string]FloatResult        `json:"damage_by_char"`
	DamageInstancesByChar []map[string]IntResult          `json:"damage_instances_by_char"`
	DamageByCharByTargets []map[int]FloatResult           `json:"damage_by_char_by_targets"`
	CharActiveTime        []IntResult                     `json:"char_active_time"`
	AbilUsageCountByChar  []map[string]IntResult          `json:"abil_usage_count_by_char"`
	ParticleCount         map[string]IntResult            `json:"particle_count"`
	ReactionsTriggered    map[core.ReactionType]IntResult `json:"reactions_triggered"`
	Duration              FloatResult                     `json:"sim_duration"`
	ElementUptime         []map[core.EleType]IntResult    `json:"ele_uptime"`
	RequiredER            []float64                       `json:"required_er"`
	//final result
	Damage         FloatResult            `json:"damage"`
	DPS            FloatResult            `json:"dps"`
	DPSByTarget    map[int]FloatResult    `json:"dps_by_target"`
	DamageOverTime map[string]FloatResult `json:"damage_over_time"`
	Iterations     int                    `json:"iter"`
	Runtime        time.Duration          `json:"runtime"`
	//other info
	NumTargets    int                     `json:"num_targets"` //TODO: to deprecate this
	CharDetails   []simulation.CharDetail `json:"char_details"`
	TargetDetails []core.EnemyProfile     `json:"target_details"`
	//for tracking min/max run
	MinSeed int64 `json:"-"`
	MaxSeed int64 `json:"-"`
	//put these last so result is kinda readable by human
	Config string `json:"config_file"`
	Text   string `json:"text"`
	Debug  string `json:"debug"`
}

func CollectResult

func CollectResult(data []simulation.Result, mode bool, chars []string, detailed bool, erCalcMode bool) (result Summary)

func (*Summary) PrettyPrint

func (r *Summary) PrettyPrint() string

func (*Summary) Save

func (s *Summary) Save(fpath string, gz bool) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL