public class MeshAppStateModeFactory
extends java.lang.Object
MeshAppStateMode
s for a
MeshAppState
. If a new mode of operation for the MeshApplication is
necessary, it should be added to modes
.Modifier and Type | Class and Description |
---|---|
static class |
MeshAppStateModeFactory.Mode
An enumeration for all available MeshApplicationModes.
|
Constructor and Description |
---|
MeshAppStateModeFactory(MeshAppState appState)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<MeshAppStateModeFactory.Mode> |
getAvailableModes()
Gets all available modes provided by the factory.
|
MeshAppStateMode |
getMode(MeshAppStateModeFactory.Mode type)
Gets a MeshApplicationMode corresponding to a String name.
|
public MeshAppStateModeFactory(MeshAppState appState)
appState
- The MeshAppState
for which the factory can create
MeshAppStateMode
s.public java.util.List<MeshAppStateModeFactory.Mode> getAvailableModes()
public MeshAppStateMode getMode(MeshAppStateModeFactory.Mode type)
type
- The type of mode to fetch.MeshAppStateModeFactory.Mode
type, or null if that type is invalid not available.