utils
Class Interval
java.lang.Object
utils.Interval
- All Implemented Interfaces:
- Serializable, Cloneable
public class Interval
- extends Object
- implements Cloneable, Serializable
this class serves for definition of functions of activation of root processes so
it will be possible to export and import it via XML
though that brings some limitation on their specification, they can be only linear
technicaly we can write the Interval more as a Function or something so it will have some more
parameters and will calculate according to them some polynom for instance. But for sake of a simplicity
this function is linear for the moment
- Author:
- Ondrej
- See Also:
- Serialized Form
Interval
public Interval(int a,
int b,
int value)
Interval
public Interval()
isInInterval
public boolean isInInterval(int x)
- Parameters:
x -
- Returns:
- true if x is in the interval
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
clone
public Object clone()
- Overrides:
clone in class Object
getRightSide
public int getRightSide()
getLeftSide
public int getLeftSide()
getIntervalSize
public int getIntervalSize()
valueInTime
public int valueInTime(int x)
- Parameters:
x -
- Returns:
- the value of the function in the specified interval
getValue
public int getValue()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.