edu.cmu.sei.aadl.model.properties
Class DeclarativeModeContext
java.lang.Object
edu.cmu.sei.aadl.model.properties.DeclarativeModeContext
- All Implemented Interfaces:
- ModeContext
public final class DeclarativeModeContext
- extends java.lang.Object
- implements ModeContext
Mode context for declarative models: wraps a component implementation.
- Author:
- aarong
Method Summary |
boolean |
equals(java.lang.Object o)
|
java.util.List |
getModes()
Get the modes. |
java.lang.String |
getName()
Get the name of the mode context object. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DeclarativeModeContext
public DeclarativeModeContext(ComponentImpl ci)
getName
public java.lang.String getName()
- Description copied from interface:
ModeContext
- Get the name of the mode context object.
- Specified by:
getName
in interface ModeContext
getModes
public java.util.List getModes()
- Description copied from interface:
ModeContext
- Get the modes.
- Specified by:
getModes
in interface ModeContext
- Returns:
- A non-
null
list of mode objects representing the
domain of modes available in this context.
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object