Package jadex.extension.envsupport
Class MEnvSpaceInstance
- java.lang.Object
-
- jadex.extension.envsupport.MEnvSpaceInstance
-
- All Implemented Interfaces:
IExtensionInfo
public class MEnvSpaceInstance extends java.lang.Object implements IExtensionInfo
Configuration of an Env space.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringnameThe space name.protected MultiCollection<java.lang.String,java.lang.Object>propertiesThe properties.protected MEnvSpaceTypespacetypeThe space type (resolved during loading).protected java.lang.StringtypeThe space type name.
-
Constructor Summary
Constructors Constructor Description MEnvSpaceInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(java.lang.String key, java.lang.Object value)Add a property.IFuture<IExtensionInstance>createInstance(IExternalAccess access, IValueFetcher fetcher)Instantiate the extension for a specific component instance.java.lang.StringgetName()Get the name.java.util.MapgetProperties()Get the properties.java.lang.ObjectgetProperty(java.lang.String name)Get a property from a (multi)map.java.util.List<java.lang.Object>getPropertyList(java.lang.String key)Get a property.MEnvSpaceTypegetType()Get the type of this element.java.lang.StringgetTypeName()Get the type name.voidsetName(java.lang.String name)Set the name.voidsetType(MEnvSpaceType spacetype)Set the type of this element.voidsetTypeName(java.lang.String type)Set the type name.
-
-
-
Field Detail
-
name
protected java.lang.String name
The space name.
-
type
protected java.lang.String type
The space type name.
-
spacetype
protected MEnvSpaceType spacetype
The space type (resolved during loading).
-
properties
protected MultiCollection<java.lang.String,java.lang.Object> properties
The properties.
-
-
Method Detail
-
createInstance
public IFuture<IExtensionInstance> createInstance(IExternalAccess access, IValueFetcher fetcher)
Instantiate the extension for a specific component instance.- Specified by:
createInstancein interfaceIExtensionInfo- Parameters:
access- The external access of the component.fetcher- The value fetcher of the component to be used for evaluating dynamic expressions.- Returns:
- The extension instance object.
-
addProperty
public void addProperty(java.lang.String key, java.lang.Object value)Add a property.- Parameters:
key- The key.value- The value.
-
getPropertyList
public java.util.List<java.lang.Object> getPropertyList(java.lang.String key)
Get a property.- Parameters:
key- The key.- Returns:
- The value.
-
getProperties
public java.util.Map getProperties()
Get the properties.- Returns:
- The properties.
-
getProperty
public java.lang.Object getProperty(java.lang.String name)
Get a property from a (multi)map.- Parameters:
map- The map.name- The name.- Returns:
- The property.
-
getTypeName
public java.lang.String getTypeName()
Get the type name.- Returns:
- The type name.
-
setTypeName
public void setTypeName(java.lang.String type)
Set the type name.- Parameters:
type- The type name to set.
-
getType
public MEnvSpaceType getType()
Get the type of this element.- Returns:
- The structure type.
-
setType
public void setType(MEnvSpaceType spacetype)
Set the type of this element.
-
getName
public java.lang.String getName()
Get the name.- Specified by:
getNamein interfaceIExtensionInfo- Returns:
- the name.
-
setName
public void setName(java.lang.String name)
Set the name.- Parameters:
name- The name to set.
-
-