Package eu.simuline.relana.model
Enum ProbDistr.Inverter
- java.lang.Object
-
- java.lang.Enum<ProbDistr.Inverter>
-
- eu.simuline.relana.model.ProbDistr.Inverter
-
- All Implemented Interfaces:
Serializable
,Comparable<ProbDistr.Inverter>
- Enclosing class:
- ProbDistr
static enum ProbDistr.Inverter extends Enum<ProbDistr.Inverter>
Enumeration of inverters: the trivial inverter and the canonical inverter.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Inverter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract void
addSuccsPreds(DeficiencyNode source, DeficiencyNode target)
(package private) abstract String
andOr()
(package private) abstract String
condEventName(String event, SortedSet<String> conds)
(package private) abstract BigDecimal
filterProb(BigDecimal prob)
(package private) abstract Set<DeficiencyNode>
getSuccsPreds(DeficiencyNode node)
(package private) abstract String
neg()
static ProbDistr.Inverter
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProbDistr.Inverter[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Identity
public static final ProbDistr.Inverter Identity
-
Invert
public static final ProbDistr.Inverter Invert
-
-
Method Detail
-
values
public static ProbDistr.Inverter[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProbDistr.Inverter c : ProbDistr.Inverter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProbDistr.Inverter valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
filterProb
abstract BigDecimal filterProb(BigDecimal prob)
-
getSuccsPreds
abstract Set<DeficiencyNode> getSuccsPreds(DeficiencyNode node)
-
addSuccsPreds
abstract void addSuccsPreds(DeficiencyNode source, DeficiencyNode target)
-
andOr
abstract String andOr()
-
neg
abstract String neg()
-
-