$darkmode
DENOPTIM
denoptim.main.Behavior Class Reference

Represents the behavior of the program at start-up. More...

Collaboration diagram for denoptim.main.Behavior:
[legend]

Public Member Functions

 Behavior (RunType runType, CommandLine cmd, int exitStatus, String helpMsg, String errorMsg)
 Creates a behavior. More...
 
 Behavior (RunType runType, CommandLine cmd)
 Creates a behavior. More...
 

Protected Attributes

String helpMsg = ""
 The help message. More...
 
String errorMsg = ""
 The error message. More...
 
int exitStatus = 0
 A non-zero value means some error has occurred and the program will terminate. More...
 
RunType runType = null
 The type of run that is requested. More...
 
CommandLine cmd = null
 The parsed command line arguments. More...
 

Detailed Description

Represents the behavior of the program at start-up.

This class is mostly meant to test the functionality of denoptim's main launcher.

Definition at line 30 of file Behavior.java.

Constructor & Destructor Documentation

◆ Behavior() [1/2]

denoptim.main.Behavior.Behavior ( RunType  runType,
CommandLine  cmd,
int  exitStatus,
String  helpMsg,
String  errorMsg 
)

Creates a behavior.

Parameters
runTypethe type of run.
cmdthe command line arguments for the run.
exitStatusany non-zero corresponds to an error.
errorMsgthe error message, if any.

Definition at line 67 of file Behavior.java.

References denoptim.main.Behavior.cmd, denoptim.main.Behavior.errorMsg, denoptim.main.Behavior.exitStatus, denoptim.main.Behavior.helpMsg, and denoptim.main.Behavior.runType.

◆ Behavior() [2/2]

denoptim.main.Behavior.Behavior ( RunType  runType,
CommandLine  cmd 
)

Creates a behavior.

Parameters
runTypethe type of run.
paramsthe arguments for the run.

Definition at line 84 of file Behavior.java.

References denoptim.main.Behavior.cmd, and denoptim.main.Behavior.runType.

Member Data Documentation

◆ cmd

CommandLine denoptim.main.Behavior.cmd = null
protected

◆ errorMsg

String denoptim.main.Behavior.errorMsg = ""
protected

◆ exitStatus

int denoptim.main.Behavior.exitStatus = 0
protected

A non-zero value means some error has occurred and the program will terminate.

Definition at line 46 of file Behavior.java.

Referenced by denoptim.main.Behavior.Behavior(), denoptim.main.Main.main(), denoptim.main.Main.reportError(), and denoptim.main.MainTest.testDefineProgramBehavior().

◆ helpMsg

String denoptim.main.Behavior.helpMsg = ""
protected

◆ runType

RunType denoptim.main.Behavior.runType = null
protected

The documentation for this class was generated from the following file: