Package jadex.extension.agr
Class MAGRSpaceInstance
- java.lang.Object
- 
- jadex.extension.agr.MAGRSpaceInstance
 
- 
- All Implemented Interfaces:
- IExtensionInfo
 
 public class MAGRSpaceInstance extends java.lang.Object implements IExtensionInfo An instance of an AGR space.
- 
- 
Field SummaryFields 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 SummaryConstructors Constructor Description MAGRSpaceInstance()
 - 
Method SummaryAll 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- 
nameprotected java.lang.String name The name.
 - 
typeprotected java.lang.String type The space type name.
 - 
spacetypeprotected MAGRSpaceType spacetype The space type (resolved during loading).
 - 
groupsprotected java.util.List groups The groups.
 
- 
 - 
Method Detail- 
createInstancepublic IFuture createInstance(IExternalAccess access, IValueFetcher fetcher) Instantiate the extension for a specific component instance.- Specified by:
- createInstancein interface- 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.
 
 - 
getNamepublic java.lang.String getName() Get the name.- Specified by:
- getNamein interface- IExtensionInfo
- Returns:
- The name.
 
 - 
setNamepublic void setName(java.lang.String name) Set the name.- Parameters:
- name- The name to set.
 
 - 
getTypeNamepublic java.lang.String getTypeName() Get the type name.- Returns:
- The type name.
 
 - 
setTypeNamepublic void setTypeName(java.lang.String type) Set the type name.- Parameters:
- type- The type name to set.
 
 - 
getTypepublic MAGRSpaceType getType() Get the type of this element.- Returns:
- The structure type.
 
 - 
setTypepublic void setType(MAGRSpaceType spacetype) Set the type of this element.
 - 
getMGroupInstancespublic MGroupInstance[] getMGroupInstances() Get the groups of this space.- Returns:
- An array of groups (if any).
 
 - 
addMGroupInstancepublic void addMGroupInstance(MGroupInstance group) Add a group to this space.- Parameters:
- group- The group to add.
 
 - 
getMGroupInstancepublic MGroupInstance getMGroupInstance(java.lang.String name) Get a group per name.- Parameters:
- name- The name.
- Returns:
- The group.
 
 - 
toStringpublic java.lang.String toString() Get a string representation of this AGR space instance.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- A string representation of this AGR space instance.
 
 
- 
 
-