LAUREL BRIDGE

Options Class

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

SystemObject
  LaurelBridge.DCFExamples.DiningPhilosophersOptions

Namespace:  LaurelBridge.DCFExamples.DiningPhilosophers
Assembly:  DiningPhilosophers (in DiningPhilosophers.exe) Version: DCF34 r12431 DCF_3_4_38_20200923 NetFramework
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 propertyMaxSleep
The maximum amount of time a philosopher will sleep in milliseconds. Default is 500ms.
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