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
Afficher le fichier Open project: ColdMatter/EDMSuite Class Usage Examples

Méthodes publiques

Свойство Type Description
appState AppState
serializer Data.Scans.ScanSerializer

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AcquireAndWait ( int numberOfScans ) : void
numberOfScans int
Résultat void

AcquireStart() public méthode

public AcquireStart ( int numberOfScans ) : void
numberOfScans int
Résultat void

AcquireStop() public méthode

public AcquireStop ( ) : void
Résultat void

AdjustProfileParameter() public méthode

public AdjustProfileParameter ( String plugin, String parameter, String newValue, bool groupMode ) : void
plugin String
parameter String
newValue String
groupMode bool
Résultat void

CaptureRemote() public méthode

public CaptureRemote ( ) : void
Résultat void

GetController() public static méthode

public static GetController ( ) : Controller
Résultat Controller

GetOutputSetting() public méthode

public GetOutputSetting ( String key ) : object
key String
Résultat object

GetPGSetting() public méthode

public GetPGSetting ( String key ) : object
key String
Résultat object

GetPGSettings() public méthode

public GetPGSettings ( ) : PluginSettings
Résultat ScanMaster.Acquire.Plugin.PluginSettings

GetShotSetting() public méthode

public GetShotSetting ( String key ) : object
key String
Résultat object

InitializeLifetimeService() public méthode

public InitializeLifetimeService ( ) : Object
Résultat Object

LoadData() public méthode

public LoadData ( ) : void
Résultat void

LoadData() public méthode

public LoadData ( String path ) : void
path String
Résultat void

LoadProfileSet() public méthode

public LoadProfileSet ( ) : void
Résultat void

OutputPattern() public méthode

public OutputPattern ( ) : void
Résultat void

ReleaseRemote() public méthode

public ReleaseRemote ( ) : void
Résultat void

SaveAverageData() public méthode

public SaveAverageData ( ) : void
Résultat void

SaveAverageData() public méthode

public SaveAverageData ( String filePath ) : void
filePath String
Résultat void

SaveAverageData() public méthode

public SaveAverageData ( System fs ) : void
fs System
Résultat void

SaveData() public méthode

public SaveData ( ) : void
Résultat void

SaveData() public méthode

public SaveData ( string filename ) : void
filename string
Résultat void

SaveProfileSet() public méthode

public SaveProfileSet ( ) : void
Résultat void

SelectProfile() public méthode

public SelectProfile ( String profile ) : void
profile String
Résultat void

StartApplication() public méthode

public StartApplication ( ) : void
Résultat void

StopApplication() public méthode

public StopApplication ( ) : void
Résultat void

StopPatternOutput() public méthode

public StopPatternOutput ( ) : void
Résultat void

Property Details

appState public_oe property

public AppState appState
Résultat AppState

serializer public_oe property

public ScanSerializer,Data.Scans serializer
Résultat Data.Scans.ScanSerializer