utils
Class Interval

Package class diagram package Interval
java.lang.Object
  extended by 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

Constructor Summary
Interval()
           
Interval(int a, int b, int value)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
 int getIntervalSize()
           
 int getLeftSide()
           
 int getRightSide()
           
 int getValue()
           
 boolean isInInterval(int x)
           
 String toString()
           
 int valueInTime(int x)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Interval

public Interval(int a,
                int b,
                int value)

Interval

public Interval()
Method Detail

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.