public class OpValue extends java.lang.Object implements java.lang.Comparable, AsciiSerializable
| Modifier and Type | Field and Description |
|---|---|
java.util.Hashtable |
childFractionTable
optional hashtable holding release fractions keyed by child element number
|
int |
constraintid
constraint index releated to release
|
float |
priority
priority of the rule in the active zone
|
int |
ruleid
rule index releated to release
|
int |
type
integer flag indicating rule type
|
double |
value
value (flow) generated by the rule
|
| Constructor and Description |
|---|
OpValue()
default constructor
|
OpValue(double v)
Constructor that initializes value only
|
OpValue(int t,
double v,
float p)
Constructor that initializes all data members
|
OpValue(OpValue ov)
Copy Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o)
Implementation required by Comparable interface
|
void |
constrainBy(OpValue ov)
changes the values of this OpValue by constriant in the given OpValue
|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
void |
init()
reinitialize to default values
|
void |
init(int newType,
double newValue)
reinitialize to given values;
|
void |
init(int t,
double v,
float p,
int rid,
int cid)
reinitialize to the give values
|
void |
init(OpValue ov)
init all fields to equal those of another OpValue
|
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
This allows access to fields withing the implementing object to set there data.
|
java.lang.String |
toString() |
public int type
public double value
public float priority
public int ruleid
public int constraintid
public java.util.Hashtable childFractionTable
public OpValue()
public OpValue(double v)
v - initial valuepublic OpValue(int t,
double v,
float p)
t - integer flag indicating rule typev - value (flow) generated by the rulep - priority of the rule in the active zonepublic OpValue(OpValue ov)
ov - OpValue object that provides initialization datapublic void init()
public void init(int newType,
double newValue)
newType - the new Rule Type (min, max, spec)newValue - the new value (i.e. flow)public void init(int t,
double v,
float p,
int rid,
int cid)
t - integer flag indicating rule typev - value (flow) generated by the rulep - priority of the rule in the active zonerid - the rule idcid - the constraint idpublic void init(OpValue ov)
ov - the OpValue to initialize topublic void constrainBy(OpValue ov)
ov - the OpValue to constrain bypublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the reference object with which to compare.public int compareTo(java.lang.Object o)
throws java.lang.ClassCastException
compareTo in interface java.lang.Comparableo - another ValueElement objectjava.lang.ClassCastExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorfld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorfld - The java field object representing the member field to be setfobj - The data to set in that field