|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.tool.view.MainModel
public class MainModel
The main model.
| Field Summary | |
|---|---|
static String |
IDENTIFIER
|
| Constructor Summary | |
|---|---|
MainModel(StorageEngine engine,
MainController mainController,
Properties properties)
Constructs a new main model. |
|
| Method Summary | |
|---|---|
AlgorithmList |
getAlgorithmList()
Returns an algorithm list (all algorithms are wrapped in an AlgorithmList) Attention: Implementation depends on the assumption that the list of algorithm will not change during runtime. |
List<Class<? extends Algorithm>> |
getAlgorithms()
Returns a list of all available algorithms. |
List<Configuration> |
getConfigurations()
Returns a list of configurations. |
GestureSetList |
getGestureSetList()
Returns a gesture set list (all gesture sets are wrapped in a GestureSetList) |
List<GestureSet> |
getGestureSets()
Returns a list with all gesture sets. |
String |
getIdentifier()
Returns the identifier of the service. |
String |
getProjectName()
|
Properties |
getProperties()
|
String |
getProperty(String key)
Returns the property value of the given key. |
IStorageManager |
getStorageManager()
Returns the Storage Manager TODO: Investigate design! |
TestSetList |
getTestSetList()
|
List<TestSet> |
getTestSets()
Returns a list with all test sets. |
boolean |
isActive()
|
void |
removeProperty(String key)
Removes a property. |
void |
reset()
Resets the service. |
void |
setProjectName(String projectName)
|
void |
setProperty(String key,
String value)
Add / Set a property. |
void |
setStorageEngine(StorageEngine storageEngine)
Sets the storage manager. |
void |
start()
Starts the service. |
void |
stop()
Stops the service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String IDENTIFIER
| Constructor Detail |
|---|
public MainModel(StorageEngine engine,
MainController mainController,
Properties properties)
engine - the storage engine to be used.mainController - the main controller of the application.proeprties - the properties| Method Detail |
|---|
public List<GestureSet> getGestureSets()
public List<TestSet> getTestSets()
public List<Class<? extends Algorithm>> getAlgorithms()
public List<Configuration> getConfigurations()
public GestureSetList getGestureSetList()
public TestSetList getTestSetList()
public AlgorithmList getAlgorithmList()
public String getIdentifier()
Service
getIdentifier in interface Servicepublic void reset()
RunnableService
reset in interface RunnableServicepublic void start()
RunnableService
start in interface RunnableServicepublic void stop()
RunnableService
stop in interface RunnableServicepublic IStorageManager getStorageManager()
public void setStorageEngine(StorageEngine storageEngine)
storageEngine -
public void setProperty(String key,
String value)
key - value - public String getProperty(String key)
key - the key of the property.
public void removeProperty(String key)
key - public Properties getProperties()
public boolean isActive()
public void setProjectName(String projectName)
public String getProjectName()
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||