Documentation ¶
Overview ¶
Package goswarm is a generated GoMock package.
Index ¶
- func NewSystemRandom() random
- type Builder
- func (b *Builder) Build() Swarm
- func (b *Builder) LogTo(logger Logger) *Builder
- func (b *Builder) TerminateAfterIterations(iterations int64) *Builder
- func (b *Builder) TerminateWhenBelowLimit(limit float64) *Builder
- func (b *Builder) WithFullyConnectedTopology() *Builder
- func (b *Builder) WithParticleCount(count int) *Builder
- func (b *Builder) WithRingTopology() *Builder
- type Candidate
- type ConsoleLogger
- type Logger
- type Mockrandom
- type MockrandomMockRecorder
- type Objective
- type Swarm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSystemRandom ¶
func NewSystemRandom() random
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewSwarmBuilder ¶
func (*Builder) TerminateAfterIterations ¶
func (*Builder) TerminateWhenBelowLimit ¶
func (*Builder) WithFullyConnectedTopology ¶
func (*Builder) WithParticleCount ¶
func (*Builder) WithRingTopology ¶
type ConsoleLogger ¶
type ConsoleLogger struct{}
func (*ConsoleLogger) Log ¶
func (c *ConsoleLogger) Log(currentBest Candidate)
type Mockrandom ¶
type Mockrandom struct {
// contains filtered or unexported fields
}
Mockrandom is a mock of random interface
func NewMockrandom ¶
func NewMockrandom(ctrl *gomock.Controller) *Mockrandom
NewMockrandom creates a new mock instance
func (*Mockrandom) EXPECT ¶
func (m *Mockrandom) EXPECT() *MockrandomMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockrandomMockRecorder ¶
type MockrandomMockRecorder struct {
// contains filtered or unexported fields
}
MockrandomMockRecorder is the mock recorder for Mockrandom
Source Files ¶
Click to show internal directories.
Click to hide internal directories.