Package hec.rss.model
Class OpRuleRef
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.rss.model.OpRuleRef
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,AltInputReportInfc,ZoneObject,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
Reference to an OpRule defined for an OpController.
- See Also:
-
Field Summary
Fields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object of the same class as this object.voidfinalize()Returns a list of rule refs that are active based on a given input.getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.getName()get the NameType's nameintgetOpSet()floatvoidgetReferencedStateVariables(List svlist) getRule()intReturns a list of all rule refs.booleanvoidoutputReport(AlternativeInputReport report, org.jdom.Element elem) Alternative Input Report Interface for data.voidremoveRuleRef(int ruleIndex) voidsetDisabled(boolean disabled) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetOpControllerIndex(int i) voidvoidvoidsetPriority(float priority) sets the priority of this rule in the referenced usevoidtoString()voidupdate(Observable o, Object arg) This is a callback method that gets called when any object that this reference is listening too is changed.Methods inherited from class hec.lang.NamedType
addModifiableListener, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
OpRuleRef
public OpRuleRef() -
OpRuleRef
-
OpRuleRef
-
-
Method Details
-
getReferencedStateVariables
- Specified by:
getReferencedStateVariablesin interfaceZoneObject
-
setParent
- Specified by:
setParentin interfaceZoneObject
-
getParent
-
removeRuleRef
public void removeRuleRef(int ruleIndex) - Specified by:
removeRuleRefin interfaceZoneObject- Parameters:
ruleIndex-
-
getActiveRuleRefs
Description copied from interface:ZoneObjectReturns a list of rule refs that are active based on a given input. The implimentation object can decide how to handle what is active and what is not.- Specified by:
getActiveRuleRefsin interfaceZoneObject- Returns:
- List of OpRuleRef objects
-
getRuleRefs
Description copied from interface:ZoneObjectReturns a list of all rule refs.- Specified by:
getRuleRefsin interfaceZoneObject- Returns:
- List of OpRuleRef objects
-
finalize
public void finalize() -
getRuleClassName
-
toString
-
getName
Description copied from class:NamedTypeget the NameType's name -
getRuleIndex
public int getRuleIndex() -
setRule
-
getRule
-
setOpControllerIndex
public void setOpControllerIndex(int i) -
getOpControllerIndex
public int getOpControllerIndex() -
setPriority
public void setPriority(float priority) sets the priority of this rule in the referenced use- Specified by:
setPriorityin interfaceZoneObject
-
getPriority
public float getPriority()- Specified by:
getPriorityin interfaceZoneObject
-
getOpSet
-
setOpSet
-
clone
Creates a new object of the same class as this object.
It then initializes each of the new object's fields by assigning it the same value as the corresponding field in this object. No
constructor is called.- Specified by:
clonein interfaceZoneObject- Overrides:
clonein classNamedType
-
update
This is a callback method that gets called when any object that this reference is listening too is changed. -
isDisabled
public boolean isDisabled()- Returns:
-
setDisabled
public void setDisabled(boolean disabled) -
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classNamedType- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Overrides:
setFieldObjectin classNamedType- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-
outputReport
Description copied from interface:AltInputReportInfcAlternative Input Report Interface for data.- Specified by:
outputReportin interfaceAltInputReportInfc
-