CoinDispenser Class
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Usage
'Usage
Dim coinDispenser1 As New CoinDispenser()
Syntax
'Declaration
MustInherit Public Class CoinDispenser
Inherits PosCommon
public abstract class CoinDispenser : PosCommon
public abstract ref class CoinDispenser : public PosCommon
public abstract class CoinDispenser extends PosCommon
public abstract class CoinDispenser extends PosCommon
Remarks
Capabilities
Coin dispenser devices support a method to dispense a specified amount of coins. A Coin dispenser device may also support status reporting to indicate an empty coin slot, a near-empty coin slot, or jammed coin slot condition.
Model
A Coin dispenser has of a number of coin slots that hold coins to dispense. When writing code for a coin dispenser, you are not concerned with controlling individual coin slots; instead, you call the DispenseChange method with the amount of change to dispense. It is the responsibility of the coin dispenser or the service object to dispense the proper amount of change from the various slots.
Device Sharing
The coin dispenser is an exclusive-use device. Its device sharing rules are:
The application must claim the device before enabling it.
The application must claim and enable the device before accessing some of the properties, dispensing change, or receiving status update events.
Inheritance Hierarchy
System.Object
Microsoft.PointOfService.PosDevice
Microsoft.PointOfService.PosCommon
Microsoft.PointOfService.CoinDispenser
Microsoft.PointOfService.BasicServiceObjects.CoinDispenserBasic
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000