Package com.uc4.api
Class TraceOptions.TraceFlag
java.lang.Object
com.uc4.api.TraceOptions.TraceFlag
- Enclosing class:
- TraceOptions
Class used to represent a AE trace flag.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a AE Traceflag with the passed attributes.Constructs a AE Traceflag with the passed attributes.Constructs a AE Traceflag from the given Element. -
Method Summary
Modifier and TypeMethodDescriptionboolean
get the trace flag descriptiongetDescriptionForTraceFlagValue
(int traceFlagValue) Fetches the description for the given traceflag value.int
getIndex()
get the trace flag indexint
Returns the maximum allowed traceflag value for this trace flag.int
Returns the minimum allowed traceflag value for this trace flag.getText()
get the trace flag text informationint
getValue()
Gets the trace flag value.int
hashCode()
void
setValue
(int val) Set the trace flag value.
-
Constructor Details
-
TraceFlag
Constructs a AE Traceflag with the passed attributes. Minimum traceflag value will be set to 0 and maximum traceflag value to 9.- Parameters:
idx
- the index of this trace flag. Number between 0 and 15 (inclusive).val
- the current traceflag value. Number between 0 and 9 (inclusive).txt
- the general description of this traceflag.des
- the description of the traceflag values for this traceflag.
-
TraceFlag
Constructs a AE Traceflag with the passed attributes.- Parameters:
idx
- the index of this trace flag. Number between 0 and 15 (inclusive).val
- the current traceflag value. Number between 0 and 9 (inclusive).txt
- the general description of this traceflag.des
- the description of the traceflag values supported by this traceflag.min
- the minimum allowed traceflag value. Number between 0 and 9 (inclusive). Number lower than the max parameter.max
- the maximum allowed traceflag value. Number between 0 and 9 (inclusive). Number greater than the min parameter.
-
TraceFlag
Constructs a AE Traceflag from the given Element.- Parameters:
traceFlag
- Element containing the definition for this traceflag.idx
- the index of this trace flag. Number between 0 and 15 (inclusive).
-
-
Method Details
-
getIndex
public int getIndex()get the trace flag index- Returns:
- int
-
setValue
public void setValue(int val) Set the trace flag value.- Parameters:
val
- Level between 0 and 9
-
getValue
public int getValue()Gets the trace flag value.- Returns:
- Trace level
-
getText
get the trace flag text information- Returns:
- String
-
getDescription
get the trace flag description- Returns:
- String
-
getMinimum
public int getMinimum()Returns the minimum allowed traceflag value for this trace flag.- Returns:
- number between 0 and 9.
-
getMaximum
public int getMaximum()Returns the maximum allowed traceflag value for this trace flag.- Returns:
- a number between 0 and 9.
-
getDescriptionForTraceFlagValue
Fetches the description for the given traceflag value.- Parameters:
traceFlagValue
- number between 0 and 9 (inclusive).- Returns:
- the description or the traceflag value itself if no description available.
-
equals
-
hashCode
public int hashCode()
-