C# Class ScanMaster.Controller

The controller is the heart of ScanMaster. The application is built around this controller, which gets the execution thread early on in application startup (look at the Main method in Runner). The controller is a singleton (there is only ever one controller). And I really mean only one - as in there is only ever one running on the machine. There are two ways to get hold of a reference to the controller object. If you are in the same (local) context that the Controller was instantiated in (which means, almost certainly, that you are writing code that is part of ScanMaster) then you should use the static factory method Controller.GetController(). If you are outside the Controller's context (which means you are probably writing another application that wants to use ScanMaster's services) then you should get hold of an object reference through the remoting system. You might well do this by registering the Controller type as well known within your application and then using new to to get a reference, but you shouldn't forget that you're actually dealing with a singleton ! The controller is published at "tcp://localhost:1170/controller.rem". The controller inherits from MarshalByRefObject so that references to it can be passed around by the remoting system.
Inheritance: System.MarshalByRefObject
ファイルを表示 Open project: ColdMatter/EDMSuite Class Usage Examples

Public Properties

Property Type Description
appState AppState
serializer Data.Scans.ScanSerializer

Public Methods

Method Description
AcquireAndWait ( int numberOfScans ) : void
AcquireStart ( int numberOfScans ) : void
AcquireStop ( ) : void
AdjustProfileParameter ( String plugin, String parameter, String newValue, bool groupMode ) : void
CaptureRemote ( ) : void
GetController ( ) : Controller
GetOutputSetting ( String key ) : object
GetPGSetting ( String key ) : object
GetPGSettings ( ) : PluginSettings
GetShotSetting ( String key ) : object
InitializeLifetimeService ( ) : Object
LoadData ( ) : void
LoadData ( String path ) : void
LoadProfileSet ( ) : void
OutputPattern ( ) : void
ReleaseRemote ( ) : void
SaveAverageData ( ) : void
SaveAverageData ( String filePath ) : void
SaveAverageData ( System fs ) : void
SaveData ( ) : void
SaveData ( string filename ) : void
SaveProfileSet ( ) : void
SelectProfile ( String profile ) : void
StartApplication ( ) : void
StopApplication ( ) : void
StopPatternOutput ( ) : void

Private Methods

Method Description
DataHandler ( object sender, DataEventArgs e ) : void
LoadProfileSet ( string path ) : void
ScanFinishedHandler ( object sender, EventArgs e ) : void
UpdateWindowTitle ( string path ) : void
WriteScanSettings ( Scan scan ) : void

Method Details

AcquireAndWait() public method

public AcquireAndWait ( int numberOfScans ) : void
numberOfScans int
return void

AcquireStart() public method

public AcquireStart ( int numberOfScans ) : void
numberOfScans int
return void

AcquireStop() public method

public AcquireStop ( ) : void
return void

AdjustProfileParameter() public method

public AdjustProfileParameter ( String plugin, String parameter, String newValue, bool groupMode ) : void
plugin String
parameter String
newValue String
groupMode bool
return void

CaptureRemote() public method

public CaptureRemote ( ) : void
return void

GetController() public static method

public static GetController ( ) : Controller
return Controller

GetOutputSetting() public method

public GetOutputSetting ( String key ) : object
key String
return object

GetPGSetting() public method

public GetPGSetting ( String key ) : object
key String
return object

GetPGSettings() public method

public GetPGSettings ( ) : PluginSettings
return ScanMaster.Acquire.Plugin.PluginSettings

GetShotSetting() public method

public GetShotSetting ( String key ) : object
key String
return object

InitializeLifetimeService() public method

public InitializeLifetimeService ( ) : Object
return Object

LoadData() public method

public LoadData ( ) : void
return void

LoadData() public method

public LoadData ( String path ) : void
path String
return void

LoadProfileSet() public method

public LoadProfileSet ( ) : void
return void

OutputPattern() public method

public OutputPattern ( ) : void
return void

ReleaseRemote() public method

public ReleaseRemote ( ) : void
return void

SaveAverageData() public method

public SaveAverageData ( ) : void
return void

SaveAverageData() public method

public SaveAverageData ( String filePath ) : void
filePath String
return void

SaveAverageData() public method

public SaveAverageData ( System fs ) : void
fs System
return void

SaveData() public method

public SaveData ( ) : void
return void

SaveData() public method

public SaveData ( string filename ) : void
filename string
return void

SaveProfileSet() public method

public SaveProfileSet ( ) : void
return void

SelectProfile() public method

public SelectProfile ( String profile ) : void
profile String
return void

StartApplication() public method

public StartApplication ( ) : void
return void

StopApplication() public method

public StopApplication ( ) : void
return void

StopPatternOutput() public method

public StopPatternOutput ( ) : void
return void

Property Details

appState public_oe property

public AppState appState
return AppState

serializer public_oe property

public ScanSerializer,Data.Scans serializer
return Data.Scans.ScanSerializer