Package org.xcsp.parser.entries
Class ParsingEntry.OEntry
- java.lang.Object
-
- org.xcsp.parser.entries.ParsingEntry
-
- org.xcsp.parser.entries.ParsingEntry.OEntry
-
- Direct Known Subclasses:
XObjectives.XObj
- Enclosing class:
- ParsingEntry
public abstract static class ParsingEntry.OEntry extends ParsingEntry
The root class for representing objectives.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.xcsp.parser.entries.ParsingEntry
ParsingEntry.CEntry, ParsingEntry.OEntry, ParsingEntry.VEntry
-
-
Field Summary
Fields Modifier and Type Field Description boolean
minimize
Indicates whether the objective must be minimized or maximized.Types.TypeObjective
type
The type (expression, sum, minimum, ...) of the objective.-
Fields inherited from class org.xcsp.parser.entries.ParsingEntry
attributes, classes, flags, id, note
-
-
Constructor Summary
Constructors Constructor Description OEntry(boolean minimize, Types.TypeObjective type)
Builds an objective with the specified minimize value and type.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Types.TypeObjective
getType()
Returns The type (expression, sum, minimum, ...) of the objective.String
toString()
abstract XVariables.XVar[]
vars()
-
Methods inherited from class org.xcsp.parser.entries.ParsingEntry
copyAttributesOf, getAttributeValue, getAttributeValue, getAttributeValue
-
-
-
-
Field Detail
-
minimize
public final boolean minimize
Indicates whether the objective must be minimized or maximized.
-
type
public final Types.TypeObjective type
The type (expression, sum, minimum, ...) of the objective.
-
-
Constructor Detail
-
OEntry
public OEntry(boolean minimize, Types.TypeObjective type)
Builds an objective with the specified minimize value and type.
-
-
Method Detail
-
vars
public abstract XVariables.XVar[] vars()
-
getType
public final Types.TypeObjective getType()
Returns The type (expression, sum, minimum, ...) of the objective. We need an accessor for Scala.
-
-