C# Class Animatroller.Framework.LogicalDevice.SingleOwnerDevice

Inheritance: BaseDevice, IOwnedDevice, IReceivesData, ISendsData
ファイルを表示 Open project: HakanL/animatroller

Protected Properties

Property Type Description
currentOwner IControlToken
lockObject object
outputChanged Subject
outputData IControlToken>.ControlSubject
owners List

Public Methods

Method Description
BuildDefaultData ( IData data ) : void
GetDataObserver ( IControlToken token ) : IPushDataController
GetFrameBuffer ( IControlToken token, IReceivesData device ) : IData
HasControl ( ) : bool
HasControl ( IControlToken checkOwner ) : bool
PushOutput ( IControlToken token ) : void
SetData ( IControlToken token ) : void
SetInitialState ( ) : void
SingleOwnerDevice ( string name ) : System
TakeControl ( int priority = 1, [ name = "" ) : IControlToken

Protected Methods

Method Description
PreprocessPushData ( IData data ) : IData
RefreshOutput ( ) : void

Private Methods

Method Description
GetOwnerlessData ( ) : IData
UpdateOutput ( ) : void

Method Details

BuildDefaultData() public abstract method

public abstract BuildDefaultData ( IData data ) : void
data IData
return void

GetDataObserver() public method

public GetDataObserver ( IControlToken token ) : IPushDataController
token IControlToken
return IPushDataController

GetFrameBuffer() public method

public GetFrameBuffer ( IControlToken token, IReceivesData device ) : IData
token IControlToken
device IReceivesData
return IData

HasControl() public method

public HasControl ( ) : bool
return bool

HasControl() public method

public HasControl ( IControlToken checkOwner ) : bool
checkOwner IControlToken
return bool

PreprocessPushData() protected method

protected PreprocessPushData ( IData data ) : IData
data IData
return IData

PushOutput() public method

public PushOutput ( IControlToken token ) : void
token IControlToken
return void

RefreshOutput() protected method

protected RefreshOutput ( ) : void
return void

SetData() public method

public SetData ( IControlToken token ) : void
token IControlToken
return void

SetInitialState() public method

public SetInitialState ( ) : void
return void

SingleOwnerDevice() public method

public SingleOwnerDevice ( string name ) : System
name string
return System

TakeControl() public method

public TakeControl ( int priority = 1, [ name = "" ) : IControlToken
priority int
name [
return IControlToken

Property Details

currentOwner protected_oe property

protected IControlToken currentOwner
return IControlToken

lockObject protected_oe property

protected object lockObject
return object

outputChanged protected_oe property

protected Subject outputChanged
return Subject

outputData protected_oe property

protected ControlSubject outputData
return IControlToken>.ControlSubject

owners protected_oe property

protected List owners
return List