ptolemy.domains.modal.kernel
Class State.UpdateContentsRequest
java.lang.Object
ptolemy.kernel.util.ChangeRequest
ptolemy.domains.modal.kernel.State.UpdateContentsRequest
- Enclosing class:
- State
private static class State.UpdateContentsRequest
- extends ChangeRequest
A change request the updates the refinements of a state if it contains a
configure element.
- Since:
- Ptolemy II 8.0
- Version:
- $Id: State.java 57044 2010-01-27 22:41:05Z cxh $
- Author:
- Thomas Huining Feng
- Accepted Rating:
- Proposed Rating:
Method Summary |
protected void |
_execute()
Execute the change. |
Methods inherited from class ptolemy.kernel.util.ChangeRequest |
addChangeListener, execute, getDescription, getLocality, getSource, isErrorReported, isPersistent, isStructuralChange, removeChangeListener, setDescription, setErrorReported, setListeners, setPersistent, waitForCompletion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_name
private java.lang.String _name
_modalModel
private CompositeEntity _modalModel
_moml
private java.lang.String _moml
State.UpdateContentsRequest
public State.UpdateContentsRequest(State source,
CompositeEntity modalModel,
java.lang.String name,
java.lang.String moml)
- Construct a request.
- Parameters:
source
- The state that originates the request.modalModel
- The closest modal model that the source state is
contained in.name
- The name of the refinement.moml
- The moml of the refinement.
_execute
protected void _execute()
throws java.lang.Exception
- Execute the change.
- Specified by:
_execute
in class ChangeRequest
- Throws:
java.lang.Exception
- If the change fails.