Package jadex.extension.agr
Class MAGRSpaceInstance
- java.lang.Object
-
- jadex.extension.agr.MAGRSpaceInstance
-
- All Implemented Interfaces:
jadex.application.IExtensionInfo
public class MAGRSpaceInstance extends java.lang.Object implements jadex.application.IExtensionInfoAn instance of an AGR space.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ListgroupsThe groups.protected java.lang.StringnameThe name.protected MAGRSpaceTypespacetypeThe space type (resolved during loading).protected java.lang.StringtypeThe space type name.
-
Constructor Summary
Constructors Constructor Description MAGRSpaceInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMGroupInstance(MGroupInstance group)Add a group to this space.IFuturecreateInstance(IExternalAccess access, IValueFetcher fetcher)Instantiate the extension for a specific component instance.MGroupInstancegetMGroupInstance(java.lang.String name)Get a group per name.MGroupInstance[]getMGroupInstances()Get the groups of this space.java.lang.StringgetName()Get the name.MAGRSpaceTypegetType()Get the type of this element.java.lang.StringgetTypeName()Get the type name.voidsetName(java.lang.String name)Set the name.voidsetType(MAGRSpaceType spacetype)Set the type of this element.voidsetTypeName(java.lang.String type)Set the type name.java.lang.StringtoString()Get a string representation of this AGR space instance.
-
-
-
Field Detail
-
name
protected java.lang.String name
The name.
-
type
protected java.lang.String type
The space type name.
-
spacetype
protected MAGRSpaceType spacetype
The space type (resolved during loading).
-
groups
protected java.util.List groups
The groups.
-
-
Method Detail
-
createInstance
public IFuture createInstance(IExternalAccess access, IValueFetcher fetcher)
Instantiate the extension for a specific component instance.- Specified by:
createInstancein 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.
-
getName
public java.lang.String getName()
Get the name.- Specified by:
getNamein interfacejadex.application.IExtensionInfo- Returns:
- The name.
-
setName
public void setName(java.lang.String name)
Set the name.- Parameters:
name- The name to set.
-
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 MAGRSpaceType getType()
Get the type of this element.- Returns:
- The structure type.
-
setType
public void setType(MAGRSpaceType spacetype)
Set the type of this element.
-
getMGroupInstances
public MGroupInstance[] getMGroupInstances()
Get the groups of this space.- Returns:
- An array of groups (if any).
-
addMGroupInstance
public void addMGroupInstance(MGroupInstance group)
Add a group to this space.- Parameters:
group- The group to add.
-
getMGroupInstance
public MGroupInstance getMGroupInstance(java.lang.String name)
Get a group per name.- Parameters:
name- The name.- Returns:
- The group.
-
toString
public java.lang.String toString()
Get a string representation of this AGR space instance.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of this AGR space instance.
-
-