Documentation ¶
Index ¶
- func CreateStub(entry string)
- func CreateTemplate(config *Config)
- func NewSimulation(config *Config) interfaces.ISimulation
- func NewSimulationFromTemplate(config *Config, template interfaces.Node) interfaces.ISimulation
- func RemoveStub()
- func RemoveTemplate()
- func RewriteDefault()
- func TemplateExists() bool
- type Config
- type NetworkConf
- type NodeConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateStub ¶
func CreateStub(entry string)
func CreateTemplate ¶
func CreateTemplate(config *Config)
func NewSimulation ¶
func NewSimulation(config *Config) interfaces.ISimulation
func NewSimulationFromTemplate ¶
func NewSimulationFromTemplate( config *Config, template interfaces.Node, ) interfaces.ISimulation
func RemoveStub ¶
func RemoveStub()
func RemoveTemplate ¶
func RemoveTemplate()
func RewriteDefault ¶
func RewriteDefault()
func TemplateExists ¶
func TemplateExists() bool
Types ¶
type Config ¶
type Config struct { // the language of the entry point and the path of the entry point: file // which will be used as main class running in the simulation; entry point // format is [go module]/[nodeStructName] Lang string `json:"lang"` Entry string `json:"entry"` // path to the location of the log.json file LogFile string `json:"logFile"` // number of peers in the system Nodes uint `json:"nodes"` Network *NetworkConf `json:"network"` // interval of virtual time units at which the capacity scheduler runs TransferInterval uint `json:"transferInterval"` // list which shows the distribution of node capacities CapacityNodes []NodeConf `json:"capacityNodes"` // Latency support - when latency support is off, nodes run directly Latency bool `json:"latency"` // Run the simulator's event queue with support for parallel events. Parallel bool `json:"parallel"` }
func JSONConfig ¶
type NetworkConf ¶
Click to show internal directories.
Click to hide internal directories.