instanceagentmapper

package
v0.0.0-...-5782b8f Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAMap

func GetAMap(pam []PAM) [][]int32

func GetPMap

func GetPMap(pam []PAM) [][]int32

Types

type DetRandInstanceSetMapper

type DetRandInstanceSetMapper struct {
	Ids []int32
	G   int32
	N   int32
}

func (*DetRandInstanceSetMapper) GetGroup

func (mapper *DetRandInstanceSetMapper) GetGroup(inst int32) []int32

type FixedInstanceAgentMapping

type FixedInstanceAgentMapping struct {
	Groups [][]int32
}

func (*FixedInstanceAgentMapping) GetGroup

func (mapper *FixedInstanceAgentMapping) GetGroup(inst int32) []int32

type InstanceAcceptorGridMapper

type InstanceAcceptorGridMapper struct {
	Acceptors []int32
	F         int32
	N         int32
}

func (*InstanceAcceptorGridMapper) GetGroup

func (mapper *InstanceAcceptorGridMapper) GetGroup(inst int32) []int32

type InstanceAcceptorSetMapper

type InstanceAcceptorSetMapper struct {
	Acceptors []int32
	F         int32
	N         int32
}

func (*InstanceAcceptorSetMapper) GetGroup

func (mapper *InstanceAcceptorSetMapper) GetGroup(inst int32) []int32

type InstanceAgentMapper

type InstanceAgentMapper interface {
	GetGroup(inst int32) []int32
}

type InstanceNegativeAcceptorSetMapper

type InstanceNegativeAcceptorSetMapper struct {
	Acceptors []int32
	F         int32
	N         int32
}

func (*InstanceNegativeAcceptorSetMapper) GetGroup

func (mapper *InstanceNegativeAcceptorSetMapper) GetGroup(inst int32) []int32

type PAM

type PAM struct {
	Proposers []int32 `json:"P"`
	Acceptors []int32 `json:"A"`
}

func ReadFromFile

func ReadFromFile(loc string) []PAM

Jump to

Keyboard shortcuts

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