Documentation ¶
Overview ¶
Package instance provides context for parallel instances of the VCS type (defined in hardware package).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct { // the name of the instance. the name can be used to decide if an action is appropriate Label Label // any randomisation required by the emulation should be retreived through // this structure Random *random.Random // the prefrences of the running instance. this instance can be shared // with other running instances of the emulation. Prefs *preferences.Preferences }
Instance defines those parts of the emulation that might change between different instantiations of the VCS type, but is not actually the VCS itself.
func NewInstance ¶
func NewInstance(tv random.TV, prefs *preferences.Preferences) (*Instance, error)
NewInstance is the preferred method of initialisation for the Instance type.
The two arguments must be supplied. In the case of the prefs field it can by nil and a new prefs instance will be created. Providing a non-nil value allows the preferences of more than one VCS instance to be synchronised.
Click to show internal directories.
Click to hide internal directories.