ptolemy.domains.modal.kernel
Class State.UpdateContentsRequest

java.lang.Object
  extended by ptolemy.kernel.util.ChangeRequest
      extended by 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:
Red (tfeng)
Proposed Rating:
Red (tfeng)

Field Summary
private  CompositeEntity _modalModel
           
private  java.lang.String _moml
           
private  java.lang.String _name
           
 
Constructor Summary
State.UpdateContentsRequest(State source, CompositeEntity modalModel, java.lang.String name, java.lang.String moml)
          Construct a request.
 
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
 

Field Detail

_name

private java.lang.String _name

_modalModel

private CompositeEntity _modalModel

_moml

private java.lang.String _moml
Constructor Detail

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.
Method Detail

_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.