Package hec.rss.model
Class ConditionalBlockRef
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.model.AbstractConditionalBlockRef
hec.rss.model.ConditionalBlockRef
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,AltInputReportInfc,ZoneObject,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
public class ConditionalBlockRef
extends AbstractConditionalBlockRef
implements ZoneObject, AsciiSerializable, Observer, AltInputReportInfc
Title: Hec Java Development
Description:
Copyright: Copyright (c) 2003
Company:
- See Also:
-
Field Summary
Fields inherited from class hec.model.AbstractConditionalBlockRef
_conditionalBlock, m_conditionalBlockIdFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT -
Constructor Summary
ConstructorsConstructorDescriptionConditionalBlockRef(StorageZoneRules szr, ConditionalBlock cb, float priority) -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object of the same class as this object.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.floatvoidgetReferencedStateVariables(List svlist) adds all StateVariables refereced by conditional block to the given ListReturns 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.voidvoidsetPriority(float priority) voidsetTreeNodeExpanded(boolean expanded) booleanvoidMethods inherited from class hec.model.AbstractConditionalBlockRef
getConditionalBlockId, getName, toString, updateMethods 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
-
ConditionalBlockRef
public ConditionalBlockRef() -
ConditionalBlockRef
-
ConditionalBlockRef
-
-
Method Details
-
getReferencedStateVariables
adds all StateVariables refereced by conditional block to the given List- Specified by:
getReferencedStateVariablesin interfaceZoneObject
-
setParent
- Specified by:
setParentin interfaceZoneObject
-
getParent
-
getPriority
public float getPriority()- Specified by:
getPriorityin interfaceZoneObject
-
setPriority
public void setPriority(float priority) - Specified by:
setPriorityin interfaceZoneObject
-
getConditionalBlock
- Specified by:
getConditionalBlockin classAbstractConditionalBlockRef
-
removeRuleRef
public void removeRuleRef(int ruleIndex) - Specified by:
removeRuleRefin interfaceZoneObject- Parameters:
ruleIndex-
-
getActiveRuleRefs
Returns a list of rule refs that are active based on a given input.- Specified by:
getActiveRuleRefsin interfaceZoneObject- Returns:
-
getRuleRefs
Returns a list of all rule refs.- Specified by:
getRuleRefsin interfaceZoneObject- Returns:
-
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
-
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 classAbstractConditionalBlockRef- 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 classAbstractConditionalBlockRef- 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
-
updateReference
public void updateReference() -
shouldTreeNodeExpand
public boolean shouldTreeNodeExpand()- Returns:
-
setTreeNodeExpanded
public void setTreeNodeExpanded(boolean expanded) - Parameters:
expanded-
-
setDisabled
public void setDisabled(boolean disabled) - Parameters:
disabled-
-
isDisabled
public boolean isDisabled()
-