|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<ProfileItem>
JaCoP.constraints.Profile
public class Profile
Defines a basic data structure to keep the profile for the diffn/1 and cumulative/4 constraints. It consists of ordered pair of time points and the current value.
| Constructor Summary | |
|---|---|
Profile()
It constructs the prophet file. |
|
Profile(short type)
It constructs the profile of a given type (e.g. |
|
| Method Summary | |
|---|---|
void |
addToProfile(int a,
int b,
int val)
It adds given amount (val) to the profile between a and b. |
int |
max()
It returns the max height of the profile item encountered in the profile. |
java.lang.String |
toString()
|
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public Profile()
public Profile(short type)
type - | Method Detail |
|---|
public void addToProfile(int a,
int b,
int val)
a - the minimum range at which it is being added.b - the maximum range at which it is being added.val - the amount by which the profiles is updated.public int max()
public java.lang.String toString()
toString in class java.util.AbstractCollection<ProfileItem>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||