Documentation ¶
Index ¶
- type ContainedEventNotifier
- type Event
- func (e *Event) HasNote() bool
- func (e *Event) Id() string
- func (e *Event) JoiningAttributes(newAttributes attributes.Attributes) *Event
- func (e *Event) Note() string
- func (e *Event) ReplaceNote(text string) *Event
- func (e *Event) ReplacingAttribute(name string, value interface{}) *Event
- func (e *Event) Source() interface{}
- func (e *Event) WithAttribute(name string, value interface{}) *Event
- func (e *Event) WithId(id string) *Event
- func (e *Event) WithNote(text string) *Event
- func (e *Event) WithSource(source interface{}) *Event
- type EventNotifier
- type EventNotifierContainer
- type EventType
- type Observer
- type SynchronousAnnealingEventNotifier
- func (notifier *SynchronousAnnealingEventNotifier) AddObserver(newObserver Observer) error
- func (notifier *SynchronousAnnealingEventNotifier) AddObserverAsFirst(newObserver Observer) error
- func (notifier *SynchronousAnnealingEventNotifier) HasObservers() bool
- func (notifier *SynchronousAnnealingEventNotifier) NotifyObserversOfEvent(event Event)
- func (notifier *SynchronousAnnealingEventNotifier) Observers() []Observer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainedEventNotifier ¶
type ContainedEventNotifier struct {
// contains filtered or unexported fields
}
ContainedEventNotifier offers a struct implementing the EventNotifierContainer interface.
func (*ContainedEventNotifier) EventNotifier ¶
func (cen *ContainedEventNotifier) EventNotifier() EventNotifier
func (*ContainedEventNotifier) SetEventNotifier ¶
func (cen *ContainedEventNotifier) SetEventNotifier(notifier EventNotifier) error
type Event ¶
type Event struct { EventType EventType attributes.ContainedAttributes }
func (*Event) JoiningAttributes ¶
func (e *Event) JoiningAttributes(newAttributes attributes.Attributes) *Event
func (*Event) ReplaceNote ¶
func (*Event) ReplacingAttribute ¶
func (*Event) WithAttribute ¶
func (*Event) WithSource ¶
type EventNotifier ¶
type EventNotifierContainer ¶
type EventNotifierContainer interface { EventNotifier() EventNotifier SetEventNotifier(notifier EventNotifier) error }
EventNotifierContainer defines an interface embedding an EventNotifier
type EventType ¶
type EventType int
func (EventType) IsAnnealingIterationState ¶
func (EventType) IsAnnealingState ¶
func (EventType) IsModelState ¶
type SynchronousAnnealingEventNotifier ¶
type SynchronousAnnealingEventNotifier struct {
// contains filtered or unexported fields
}
func (*SynchronousAnnealingEventNotifier) AddObserver ¶
func (notifier *SynchronousAnnealingEventNotifier) AddObserver(newObserver Observer) error
func (*SynchronousAnnealingEventNotifier) AddObserverAsFirst ¶
func (notifier *SynchronousAnnealingEventNotifier) AddObserverAsFirst(newObserver Observer) error
func (*SynchronousAnnealingEventNotifier) HasObservers ¶
func (notifier *SynchronousAnnealingEventNotifier) HasObservers() bool
func (*SynchronousAnnealingEventNotifier) NotifyObserversOfEvent ¶
func (notifier *SynchronousAnnealingEventNotifier) NotifyObserversOfEvent(event Event)
func (*SynchronousAnnealingEventNotifier) Observers ¶
func (notifier *SynchronousAnnealingEventNotifier) Observers() []Observer
Click to show internal directories.
Click to hide internal directories.