WIP
DirectOutput framework for virtual pinball cabinets WIP
Go to:
Overview 
DirectOutput.Cab.Out.Pac.PacDrive Class Reference

The PacDrive is a simple output controller with 16 digital/on off outputs. More...

Inheritance diagram for DirectOutput.Cab.Out.Pac.PacDrive:
DirectOutput.Cab.Out.OutputControllerBase DirectOutput.Cab.Out.IOutputController DirectOutput.General.Generic.NamedItemBase DirectOutput.Cab.Out.IOutputController DirectOutput.General.Generic.INamedItem DirectOutput.General.Generic.INamedItem DirectOutput.General.Generic.INamedItem

Public Member Functions

override void Update ()
 Signals the workerthread that all pending updates for the PacDrive should be sent to the PacDrive. More...
 
override void Init (Cabinet Cabinet)
 Initializes the PacDrive object.
This method does also start the workerthread which does the actual update work when Update() is called.
This method should only be called once. Subsequent calls have no effect. More...
 
override void Finish ()
 Finishes the PacDrive object.
Finish does also terminate the workerthread. More...
 
 PacDrive ()
 Initializes a new instance of the PacDriveInstance class. More...
 

Protected Member Functions

override void OnOutputValueChanged (IOutput Output)
 This method is called whenever the value of a output in the Outputs property changes its value.
It updates the internal array holding the states of the PacDrive outputs. More...
 
- Protected Member Functions inherited from DirectOutput.General.Generic.NamedItemBase
virtual void AfterNameChange (string OldName, string NewName)
 
virtual void BeforeNameChange (string OldName, string NewName)
 
virtual void OnPropertyChanged (string propertyName)
 
virtual void OnPropertyChanging (string propertyName)
 

Additional Inherited Members

- Properties inherited from DirectOutput.Cab.Out.OutputControllerBase
virtual OutputList Outputs [get, set]
 Contains the OutputList object for the outputs of the output controller.
More...
 
- Properties inherited from DirectOutput.General.Generic.NamedItemBase
string Name [get, set]
 Name of the named item.
Triggers BeforeNameChange before a new Name is set.
Triggers AfterNameChanged after a new name has been set. More...
 
- Properties inherited from DirectOutput.General.Generic.INamedItem
string Name [get, set]
 Gets or sets the name of the item.
Must fire the BeforeNameChange and AfterNameChange events when the value of the property is changed. More...
 
- Properties inherited from DirectOutput.Cab.Out.IOutputController
new string Name [get, set]
 Name of the IOutputController. This property is fully implemented in the abstract OutputControllerBase class. More...
 
OutputList Outputs [get, set]
 OutputList containing the IOutput objects for a IOutputController. More...
 
- Events inherited from DirectOutput.General.Generic.NamedItemBase
EventHandler< NameChangeEventArgsAfterNameChanged
 Event is fired after the value of the property Name has changed. More...
 
EventHandler< NameChangeEventArgsBeforeNameChanged
 Event is fired before the value of the property Name is changed. More...
 
PropertyChangedEventHandler PropertyChanged
 
PropertyChangingEventHandler PropertyChanging
 
- Events inherited from DirectOutput.General.Generic.INamedItem
EventHandler< NameChangeEventArgsBeforeNameChanged
 Occurs before the name of the item changes. More...
 
EventHandler< NameChangeEventArgsAfterNameChanged
 Occurs when after the name of the item has changed. More...
 

Detailed Description

The PacDrive is a simple output controller with 16 digital/on off outputs.

DOF supports a the use of 1 PacDrive unit. This unit can be detected and configured automatically. If auto configuration is used, the generated LedWizEquivalent toy for the PacDrive will have number 19. This means that ini files numbered with 19 are automatically used to configure a PicDrive unit.

The outputs are by default turned on when the PacDrive unit is powered up. This controller class will turn off the PacDrive outputs upon initialisation and when it is finished.

This unit is made and sold by Ultimarc.

pacdrivelogo.jpg

Definition at line 24 of file PacDrive.cs.

Constructor & Destructor Documentation

DirectOutput.Cab.Out.Pac.PacDrive.PacDrive ( )

Initializes a new instance of the PacDriveInstance class.

Definition at line 187 of file PacDrive.cs.

Member Function Documentation

override void DirectOutput.Cab.Out.Pac.PacDrive.Finish ( )

Finishes the PacDrive object.
Finish does also terminate the workerthread.

Implements DirectOutput.Cab.Out.IOutputController.

Definition at line 55 of file PacDrive.cs.

override void DirectOutput.Cab.Out.Pac.PacDrive.Init ( Cabinet  Cabinet)

Initializes the PacDrive object.
This method does also start the workerthread which does the actual update work when Update() is called.
This method should only be called once. Subsequent calls have no effect.

Parameters
CabinetThe cabinet object which is using the output controller instance.

Implements DirectOutput.Cab.Out.IOutputController.

Definition at line 43 of file PacDrive.cs.

override void DirectOutput.Cab.Out.Pac.PacDrive.OnOutputValueChanged ( IOutput  Output)
protectedvirtual

This method is called whenever the value of a output in the Outputs property changes its value.
It updates the internal array holding the states of the PacDrive outputs.

Parameters
OutputThe output.
Exceptions
System.ExceptionThe OutputValueChanged event handler for the PacDrive uni has been called by a sender which is not a OutputNumbered. or PacDrive output numbers must be in the range of 1-16. The supplied output number {0} is out of range..Build(ON.Number)

Implements DirectOutput.Cab.Out.OutputControllerBase.

Definition at line 97 of file PacDrive.cs.

override void DirectOutput.Cab.Out.Pac.PacDrive.Update ( )

Signals the workerthread that all pending updates for the PacDrive should be sent to the PacDrive.

Implements DirectOutput.Cab.Out.IOutputController.

Definition at line 31 of file PacDrive.cs.


The documentation for this class was generated from the following file: