public class SimulinkDictionaryModel extends AbstractSimulinkModel implements ISimulinkDictionaryModelElement
Modifier and Type | Field and Description |
---|---|
protected static String |
CREATE_FILE |
protected DictionaryModelOperationContributor |
dicOperationContributor |
protected MatlabHandleElement |
dictionaryHandle |
protected static String |
OPEN_FILE |
closeOnDispose, enableTryCatch, engine, engineJarPath, enginePoolSize, ENV_ENGINE_JAR_PATH, ENV_LIBRARY_PATH, ENV_MATLAB_PATH, file, libraryPath, matlabPath, openOnLoad, paths, PROPERTY_CLOSE_ON_DISPOSE, PROPERTY_CURRENT_SIMULINK_PROJECT, PROPERTY_ENABLE_TRY_CATCH, PROPERTY_ENGINE_JAR_PATH, PROPERTY_ENGINE_POOL_SIZE, PROPERTY_FILE, PROPERTY_LIBRARY_PATH, PROPERTY_MATLAB_PATH, PROPERTY_OPEN_ON_LOAD, PROPERTY_PATHS, PROPERTY_SIMULINK_PROJECT, PROPERTY_WORKING_DIR, simulinkProject, useCurrentProject, workingDir
allContentsCache, kindCache, PROPERTY_CACHED, PROPERTY_CONCURRENT, typeCache
aliases, ENV_PREFIX, name, PROPERTY_ALIASES, PROPERTY_NAME, PROPERTY_READONLOAD, PROPERTY_READONLY, PROPERTY_STOREONDISPOSAL, propertyGetter, propertySetter, readOnLoad, storeOnDisposal
Constructor and Description |
---|
SimulinkDictionaryModel() |
addPath, addPath, disposeModel, getAllTypeNamesOf, getCacheKeyForType, getEngine, getEngineJarPath, getEnumerationValue, getFile, getLibraryPath, getMatlabPath, getPaths, getProject, getWorkingDir, getWorkspaceVariable, isCloseOnDispose, isEnableTryCatch, isLoaded, isOpenOnLoad, isUseCurrentProject, parseMatlabEngineVariable, resolvePaths, setCloseOnDispose, setEnableTryCatch, setEngine, setEngineJarPath, setFile, setLibraryPath, setMatlabPath, setOpenOnLoad, setProject, setProject, setUseCurrentProject, setWorkingDir, statement, statementWithResult
addToCache, allContents, clearCache, createInstance, deleteElement, dispose, getAllOfKind, getAllOfKindOrType, getAllOfType, initCaches, isCachingEnabled, isConcurrent, load, removeFromCache, setCachingEnabled, setConcurrent, wrap
allInstances, createInstance, getAliases, getFullyQualifiedTypeNameOf, getMetamodel, getName, getPropertyGetter, getPropertySetter, getTransactionSupport, getTypeOf, isModelElement, isOfKind, isOfType, isPropertySet, isReadOnLoad, isStoredOnDisposal, knowsAboutProperty, load, load, setName, setReadOnLoad, setStoredOnDisposal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, getEngine
allContents, close, createInstance, createInstance, deleteElement, dispose, getAliases, getAllOfKind, getAllOfType, getFullyQualifiedTypeNameOf, getMetamodel, getName, getPropertyGetter, getPropertySetter, getTransactionSupport, getTypeOf, isModelElement, isOfKind, isOfType, isPropertySet, isReadOnLoad, isStoredOnDisposal, knowsAboutProperty, load, load, load, setName, setReadOnLoad, setStoredOnDisposal
protected static final String CREATE_FILE
protected static final String OPEN_FILE
protected MatlabHandleElement dictionaryHandle
protected DictionaryModelOperationContributor dicOperationContributor
protected void loadModel() throws EolModelLoadingException
loadModel
in class AbstractSimulinkModel
EolModelLoadingException
public void load(StringProperties properties, IRelativePathResolver resolver) throws EolModelLoadingException
load
in interface IModel
load
in class AbstractSimulinkModel
EolModelLoadingException
public String getTypeNameOf(Object instance)
IModel
getTypeNameOf
in interface IModel
instance
- The model object whose type is to be determined.public Object getElementById(String id)
getElementById
in interface IModel
public String getElementId(Object instance)
getElementId
in interface IModel
public void setElementId(Object instance, String newId)
setElementId
in interface IModel
public boolean owns(Object instance)
IModel
owns
in interface IModel
owns
in class AbstractSimulinkModel
instance
- the Java object to test.public boolean isInstantiable(String type)
isInstantiable
in interface IModel
isInstantiable
in class AbstractSimulinkModel
protected void closeMatlabModel()
closeMatlabModel
in class AbstractSimulinkModel
protected Collection<ISimulinkModelElement> allContentsFromModel()
allContentsFromModel
in class CachedModel<ISimulinkModelElement>
protected Collection<ISimulinkModelElement> getAllOfTypeFromModel(String type) throws EolModelElementTypeNotFoundException
getAllOfTypeFromModel
in class CachedModel<ISimulinkModelElement>
EolModelElementTypeNotFoundException
protected Collection<ISimulinkModelElement> getAllOfKindFromModel(String kind) throws EolModelElementTypeNotFoundException
getAllOfKindFromModel
in class CachedModel<ISimulinkModelElement>
EolModelElementTypeNotFoundException
protected ISimulinkModelElement createInstanceInModel(String type) throws EolModelElementTypeNotFoundException, EolNotInstantiableModelElementTypeException
createInstanceInModel
in class AbstractSimulinkModel
EolModelElementTypeNotFoundException
EolNotInstantiableModelElementTypeException
protected boolean deleteElementInModel(Object instance) throws EolRuntimeException
CachedModel
deleteElementInModel
in class CachedModel<ISimulinkModelElement>
EolRuntimeException
public IModel getOwningModel()
getOwningModel
in interface IModelElement
public Object getProperty(String property) throws EolRuntimeException
getProperty
in interface ISimulinkModelElement
EolRuntimeException
public void setProperty(String property, Object value) throws EolRuntimeException
setProperty
in interface ISimulinkModelElement
EolRuntimeException
public Collection<String> getAllTypeNamesOf()
getAllTypeNamesOf
in interface ISimulinkModelElement
public boolean deleteElementInModel() throws EolRuntimeException
deleteElementInModel
in interface ISimulinkModelElement
EolRuntimeException
public String getType()
getType
in interface ISimulinkModelElement
public MatlabHandleElement getHandle()
getHandle
in interface ISimulinkModelElement
Copyright © 2020. All rights reserved.