src

package
v0.0.0-...-8d05fb3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertStringToFloat64

func ConvertStringToFloat64(sMap map[string]*AtmosphereControl) map[float64]*AtmosphereControl

func MonteCarlo

func MonteCarlo(failure float64) bool

func ParseAtmosphereControlFile

func ParseAtmosphereControlFile(filename string) map[float64]*AtmosphereControl

func ParseAtmosphereInputDependency

func ParseAtmosphereInputDependency(fileName string) map[string][]*ValueFail

func Reader

func Reader()

Types

type AtmosphereControl

type AtmosphereControl struct {
	Temp      float64 `json:"air_temp"`
	Humidity  float64 `json:"humidity"`
	Pressure  float64 `json:"atm_pressure"`
	Vibration float64 `json:"vibration"`
}

type AtmosphereControlManager

type AtmosphereControlManager struct {
	// contains filtered or unexported fields
}

func NewAtmosphereControlManager

func NewAtmosphereControlManager(atmControlFileName string) *AtmosphereControlManager

func (*AtmosphereControlManager) AtmosphereControlManagerProcess

func (ACM *AtmosphereControlManager) AtmosphereControlManagerProcess(TP *SANProcess, data interface{})

type AtmosphereDependency

type AtmosphereDependency struct {
	// contains filtered or unexported fields
}

func GetAtmosphereDependencyRoot

func GetAtmosphereDependencyRoot(parameter string, data map[string][]*ValueFail) *AtmosphereDependency

type AtmosphereFailManager

type AtmosphereFailManager struct {
	// contains filtered or unexported fields
}

func NewAtmosphereFailManager

func NewAtmosphereFailManager(acm *AtmosphereControlManager, iob *IOBalancer) *AtmosphereFailManager

func (*AtmosphereFailManager) AtmosphereDiskFailManagerProcess

func (AFM *AtmosphereFailManager) AtmosphereDiskFailManagerProcess(TP *SANProcess, data interface{})

func (*AtmosphereFailManager) PoissonBreakManagerProcess

func (AFM *AtmosphereFailManager) PoissonBreakManagerProcess(TP *SANProcess, data interface{})

func (*AtmosphereFailManager) PoissonRepairManagerProcess

func (AFM *AtmosphereFailManager) PoissonRepairManagerProcess(TP *SANProcess, data interface{})

type PoissonGenerator

type PoissonGenerator struct {
	// contains filtered or unexported fields
}

func NewPoissonGenerator

func NewPoissonGenerator(seed int64) *PoissonGenerator

func (*PoissonGenerator) Poisson

func (prng *PoissonGenerator) Poisson(lambda float64) int64

Poisson returns a random number of possion distribution

type UniformGenerator

type UniformGenerator struct {
	// contains filtered or unexported fields
}

func NewUniformGenerator

func NewUniformGenerator(seed int64) *UniformGenerator

type ValueFail

type ValueFail struct {
	Value float64 `json:"value"`
	Fail  float64 `json:"fail"`
}

Jump to

Keyboard shortcuts

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