Class AvatarMapping
- java.lang.Object
-
- jadex.extension.envsupport.environment.AvatarMapping
-
public class AvatarMapping extends java.lang.ObjectRelationship specification between an component type and an avatar type.
-
-
Field Summary
Fields Modifier and Type Field Description protected IParsedExpressioncomponentnameThe name of the component to be created for an avatar.protected java.lang.StringcomponenttypeThe component type name.protected booleancreateavatarThe flag for creating the avatar when an component is created.protected booleancreatecomponentThe flag for creating the component when an avatar is created.protected booleankillavatarThe flag for deleting the avatar when component is killed.protected booleankillcomponentThe flag for deleting the component when avatar is killed.protected java.lang.StringobjecttypeThe object type.
-
Constructor Summary
Constructors Constructor Description AvatarMapping()Create a new avatar mapping.AvatarMapping(java.lang.String componenttype, java.lang.String objecttype)Create a new avatar mapping.AvatarMapping(java.lang.String componenttype, java.lang.String objecttype, boolean createavatar, boolean createcomponent, boolean killavatar, boolean killcomponent)Create a new avatar mapping.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IParsedExpressiongetComponentName()Get the component name expression, if any.java.lang.StringgetComponentType()Get the componenttype.java.lang.StringgetObjectType()Get the objecttype.booleanisCreateAvatar()Should avatar be created.booleanisCreateComponent()Should component be created.booleanisKillAvatar()Should avatar be killed.booleanisKillComponent()Should component being killed.voidsetComponentName(IParsedExpression componentname)Set the component name expression.voidsetComponentType(java.lang.String componenttype)voidsetCreateAvatar(boolean createavatar)voidsetCreateComponent(boolean createcomponent)voidsetKillAvatar(boolean killavatar)voidsetKillComponent(boolean killcomponent)voidsetObjectType(java.lang.String object)
-
-
-
Field Detail
-
componenttype
protected java.lang.String componenttype
The component type name.
-
objecttype
protected java.lang.String objecttype
The object type.
-
createavatar
protected boolean createavatar
The flag for creating the avatar when an component is created.
-
createcomponent
protected boolean createcomponent
The flag for creating the component when an avatar is created.
-
killavatar
protected boolean killavatar
The flag for deleting the avatar when component is killed.
-
killcomponent
protected boolean killcomponent
The flag for deleting the component when avatar is killed.
-
componentname
protected IParsedExpression componentname
The name of the component to be created for an avatar.
-
-
Constructor Detail
-
AvatarMapping
public AvatarMapping()
Create a new avatar mapping.
-
AvatarMapping
public AvatarMapping(java.lang.String componenttype, java.lang.String objecttype)Create a new avatar mapping.
-
AvatarMapping
public AvatarMapping(java.lang.String componenttype, java.lang.String objecttype, boolean createavatar, boolean createcomponent, boolean killavatar, boolean killcomponent)Create a new avatar mapping.
-
-
Method Detail
-
getComponentType
public java.lang.String getComponentType()
Get the componenttype.- Returns:
- The componenttype.
-
getObjectType
public java.lang.String getObjectType()
Get the objecttype.- Returns:
- The objecttype.
-
isCreateAvatar
public boolean isCreateAvatar()
Should avatar be created.- Returns:
- True, for avatar being created.
-
isCreateComponent
public boolean isCreateComponent()
Should component be created.- Returns:
- True, for component being created.
-
isKillAvatar
public boolean isKillAvatar()
Should avatar be killed.- Returns:
- True, for avatar being killed.
-
isKillComponent
public boolean isKillComponent()
Should component being killed.- Returns:
- True, for component being created.
-
getComponentName
public IParsedExpression getComponentName()
Get the component name expression, if any.- Returns:
- The component name expression or null.
-
setComponentType
public void setComponentType(java.lang.String componenttype)
- Parameters:
componenttype- the componenttype to set
-
setObjectType
public void setObjectType(java.lang.String object)
- Parameters:
object- the objecttype to set
-
setCreateAvatar
public void setCreateAvatar(boolean createavatar)
- Parameters:
createavatar- the createavatar to set
-
setCreateComponent
public void setCreateComponent(boolean createcomponent)
- Parameters:
createcomponent- the createcomponent to set
-
setKillAvatar
public void setKillAvatar(boolean killavatar)
- Parameters:
killavatar- the killavatar to set
-
setKillComponent
public void setKillComponent(boolean killcomponent)
- Parameters:
killcomponent- the killcomponent to set
-
setComponentName
public void setComponentName(IParsedExpression componentname)
Set the component name expression.- Parameters:
name- The component name expression.
-
-