Package jadex.extension.envsupport
Class MEnvSpaceInstance
- java.lang.Object
-
- jadex.extension.envsupport.MEnvSpaceInstance
-
- All Implemented Interfaces:
jadex.application.IExtensionInfo
public class MEnvSpaceInstance extends java.lang.Object implements jadex.application.IExtensionInfo
Configuration of an Env space.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
name
The space name.protected MultiCollection<java.lang.String,java.lang.Object>
properties
The properties.protected MEnvSpaceType
spacetype
The space type (resolved during loading).protected java.lang.String
type
The space type name.
-
Constructor Summary
Constructors Constructor Description MEnvSpaceInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(java.lang.String key, java.lang.Object value)
Add a property.IFuture<jadex.application.IExtensionInstance>
createInstance(IExternalAccess access, IValueFetcher fetcher)
Instantiate the extension for a specific component instance.java.lang.String
getName()
Get the name.java.util.Map
getProperties()
Get the properties.java.lang.Object
getProperty(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.MEnvSpaceType
getType()
Get the type of this element.java.lang.String
getTypeName()
Get the type name.void
setName(java.lang.String name)
Set the name.void
setType(MEnvSpaceType spacetype)
Set the type of this element.void
setTypeName(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<jadex.application.IExtensionInstance> createInstance(IExternalAccess access, IValueFetcher fetcher)
Instantiate the extension for a specific component instance.- Specified by:
createInstance
in interfacejadex.application.IExtensionInfo
- 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:
getName
in interfacejadex.application.IExtensionInfo
- Returns:
- the name.
-
setName
public void setName(java.lang.String name)
Set the name.- Parameters:
name
- The name to set.
-
-