public class SystemOpController extends NamedType implements AsciiSerializable, java.io.Serializable, java.lang.Cloneable
_description, _index, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT| Constructor and Description |
|---|
SystemOpController()
Default Constructor for Ascii Serializer
|
SystemOpController(int id,
java.lang.String name,
java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a new object of the same class as this object.
|
void |
deleteRule(SystemOpRule rule)
Deletes the Rule from the controller
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
SystemOpRule |
getRule(int id)
return the SystemOpRule matching index, or null if it does not exist
|
SystemOpRule |
getRule(java.lang.String name)
return the SystemOpRule matching name, or null if it does not exist
|
int[] |
getRuleIDs()
Returns an array of integers which index every rule in this controller
This array is guaranteed to be non-null
|
java.util.Vector |
getRuleList()
Returns a list of all of the rules in this controller.
|
int |
getUnitSystem() |
SystemOpRule |
newRule(java.lang.String type,
java.lang.String name)
Creates a new rule and returns a reference to the rule.
|
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
This allows access to fields withing the implementing object to set there data.
|
void |
setParent(ReservoirSysOp p) |
addModifiableListener, compareTo, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, toString, update, useRecursiveModifiedTestpublic SystemOpController()
public SystemOpController(int id,
java.lang.String name,
java.lang.String description)
public void setParent(ReservoirSysOp p)
public java.util.Vector getRuleList()
public int getUnitSystem()
public int[] getRuleIDs()
public SystemOpRule newRule(java.lang.String type, java.lang.String name)
name - - the name of the ruledesc - - the description of the rulepublic SystemOpRule getRule(int id)
public SystemOpRule getRule(java.lang.String name)
public void deleteRule(SystemOpRule rule)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
NamedTypepublic java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorgetFieldObject in class NamedTypefld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorsetFieldObject in class NamedTypefld - The java field object representing the member field to be setfobj - The data to set in that field