public interface IViolation extends Serializable, Cloneable
IViolations
describes behavior the Optimizer
is supposed to avoid like
Resources
being too late, Nodes
not being skipped etc. These Violations
are being
listed after an optimization run
.Modifier and Type | Method and Description |
---|---|
IViolation |
copy()
Returns a new
Violation with the values of Violation.getCategory() , Violation.getAttribute() ,
Violation.getValue() and Violation.getCode() . |
String |
getAttribute()
Gets the attribute.
|
String |
getCategory()
Gets the category.
|
int |
getCode()
Gets the code that is identifying this IViolation
|
String |
getSubAttribute()
Gets the
Violation.subAttribute . |
String |
getValue()
Deprecated.
Gets the value.
|
List<ILogicEntityRoute> |
getViolationActorRoutes()
Gets the routes, which are triggering the violation.
|
List<IOptimizationElement> |
getViolationActors()
Gets the
Violation.violationActors . |
String |
getViolationDescription()
Gets the violation description.
|
String |
getViolationValue()
Gets the
Violation.violationValue , the default value is "" . |
void |
setValue(String valueDesc,
String violationValue)
Sets the value.
|
void |
setViolationActorRoutes(List<ILogicEntityRoute> routes)
Sets the routes, which are triggering the violation.
|
void |
setViolationActors(List<IOptimizationElement> elements)
Gets the
Violation.violationActors . |
String |
toString()
Returns the
category , the attribute , the value
and the violationValue . |
String getCategory()
String getAttribute()
void setValue(String valueDesc, String violationValue)
valueDesc
- the value descviolationValue
- the violation valueString getValue()
String getViolationDescription()
int getCode()
String toString()
category
, the attribute
, the value
and the violationValue
. If Violation.getViolationActors()
is not empty
adds all the ids
of all current actors.String getViolationValue()
Violation.violationValue
, the default value is ""
.IViolation copy()
Violation
with the values of Violation.getCategory()
, Violation.getAttribute()
,
Violation.getValue()
and Violation.getCode()
.void setViolationActors(List<IOptimizationElement> elements)
Violation.violationActors
.elements
- the arrayList containing IOptimizationElementsList<IOptimizationElement> getViolationActors()
Violation.violationActors
.void setViolationActorRoutes(List<ILogicEntityRoute> routes)
routes
- the new violation actor routesList<ILogicEntityRoute> getViolationActorRoutes()
String getSubAttribute()
Violation.subAttribute
.Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.