LAUREL BRIDGE

Options Class

DICOM Connectivity Framework V3.4
Command line options class for parsing user options for DiningPhilosophers.
Inheritance Hierarchy

SystemObject
  LaurelBridge.DCF.Examples.DiningPhilosophersOptions

Namespace:  LaurelBridge.DCF.Examples.DiningPhilosophers
Assembly:  DiningPhilosophers (in DiningPhilosophers.exe) Version: DCF34 r11538 DCF_3_4_24_20190319
Syntax

C#
public class Options

The Options type exposes the following members.

Constructors

  NameDescription
Public methodOptions
Initializes a new instance of the Options class
Top
Properties

  NameDescription
Public propertyAmountToEat
The amount of food a given philosopher will eat at a given time. Default is 5.
Public propertyLogDirectory
The directory where output from the script will be written. Defaults to the user ApplicationData folder.
Public propertyMaxSleep
The maximum possible amount of time a philosopher will sleep at a given time. Default is 3000.
Public propertyPhilosophersCount
The total number of philosophers. Default is 5.
Public propertyTotalFood
The total amount of food to consume. Default is 35.
Top
Methods

  NameDescription
Public methodStatic memberTryParse
Try to create an instance of the Options class using the specified commandLine parameter. For an invalid command line, a failure message is written to the console.
Top
See Also

Reference