public class Violation extends Object
Constructor and Description |
---|
Violation(ViolationCode code,
double actualBufferDuration)
Constructs a new violation, which carries the actual buffer duration and
the type of violation (buffer too small or too large).
|
Modifier and Type | Method and Description |
---|---|
double |
getActualBufferDuration()
Returns the actual duration of the buffer when it violated the
constraint.
|
ViolationCode |
getCode()
Returns the violation code (buffer too small or too large).
|
public Violation(ViolationCode code, double actualBufferDuration)
code
- buffer too small or too largeactualBufferDuration
- the actual buffer durationpublic ViolationCode getCode()
public double getActualBufferDuration()
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.