public class Violation extends Object implements IViolation
Constructor and Description |
---|
Violation(String category,
String attribute,
String subAttribute,
int violationCode) |
Modifier and Type | Method and Description |
---|---|
Violation |
copy()
|
String |
getAttribute()
Gets the attribute.
|
String |
getCategory()
Gets the category.
|
int |
getCode()
Gets the code that is identifying this IViolation
|
String |
getSubAttribute()
Gets the
subAttribute . |
String |
getValue()
Deprecated.
|
List<ILogicEntityRoute> |
getViolationActorRoutes()
Gets the routes, which are triggering the violation.
|
List<IOptimizationElement> |
getViolationActors()
Gets the
violationActors . |
String |
getViolationDescription()
Gets the violation description.
|
String |
getViolationValue()
Gets the
violationValue , the default value is "" . |
void |
setValue(String violationDesc,
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
violationActors . |
String |
toString()
Returns the
category , the attribute , the value
and the violationValue . |
public void setViolationActors(List<IOptimizationElement> elements)
IViolation
violationActors
.setViolationActors
in interface IViolation
elements
- the arrayList containing IOptimizationElementspublic List<IOptimizationElement> getViolationActors()
IViolation
violationActors
.getViolationActors
in interface IViolation
public void setViolationActorRoutes(List<ILogicEntityRoute> routes)
IViolation
setViolationActorRoutes
in interface IViolation
routes
- the new violation actor routespublic List<ILogicEntityRoute> getViolationActorRoutes()
IViolation
getViolationActorRoutes
in interface IViolation
public String getCategory()
IViolation
getCategory
in interface IViolation
public String getAttribute()
IViolation
getAttribute
in interface IViolation
public String getSubAttribute()
IViolation
subAttribute
.getSubAttribute
in interface IViolation
public void setValue(String violationDesc, String violationValue)
IViolation
setValue
in interface IViolation
violationDesc
- the value descviolationValue
- the violation value@Deprecated public String getValue()
getValue
in interface IViolation
public String getViolationDescription()
IViolation
getViolationDescription
in interface IViolation
public int getCode()
IViolation
getCode
in interface IViolation
public String toString()
IViolation
category
, the attribute
, the value
and the violationValue
. If getViolationActors()
is not empty
adds all the ids
of all current actors.toString
in interface IViolation
toString
in class Object
public Violation copy()
IViolation
copy
in interface IViolation
public String getViolationValue()
IViolation
violationValue
, the default value is ""
.getViolationValue
in interface IViolation
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.