public abstract class ModelAgentBase extends ModelComponentBase implements ModelAgent
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibility| Modifier and Type | Field and Description |
|---|---|
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames| Constructor and Description |
|---|
ModelAgentBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Remove resources used by this agent.
|
void |
finalize() |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
Model |
getModel() |
void |
initialize(double t) |
boolean |
isActive()
Returns true if this agent is active.
|
void |
setActive(boolean enable) |
void |
setModel(Model model) |
void |
setModelFromComponent(ModelComponent comp) |
void |
write(java.io.PrintWriter pw,
NumberFormat fmt,
java.lang.Object ref)
Writes a text description of this element to a PrintWriter.
|
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, copy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, hasState, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferencesequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertygetChildren, hasChildrenpostscanisWritablecreateState, getInitialState, getState, setStatepublic static PropertyList myProps
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class ModelComponentBasepublic boolean isActive()
ModelAgentisActive in interface ModelAgentpublic void setActive(boolean enable)
public void initialize(double t)
initialize in interface ModelAgentpublic void setModelFromComponent(ModelComponent comp)
public void setModel(Model model)
setModel in interface ModelAgentpublic Model getModel()
getModel in interface ModelAgentpublic void write(java.io.PrintWriter pw,
NumberFormat fmt,
java.lang.Object ref)
throws java.io.IOException
ModelComponentBasescan and complete
enough to allow full reconstruction of the element.write in interface Scannablewrite in class ModelComponentBasepw - stream for writing the elementfmt - numeric formating informationref - optional reference object which can be used for producing references to
other objectsjava.io.IOException - if an I/O error occuredpublic void dispose()
dispose in interface ModelAgentpublic void finalize()
finalize in class java.lang.Object