Class AvatarMapping
- java.lang.Object
-
- jadex.extension.envsupport.environment.AvatarMapping
-
public class AvatarMapping extends java.lang.Object
Relationship specification between an component type and an avatar type.
-
-
Field Summary
Fields Modifier and Type Field Description protected IParsedExpression
componentname
The name of the component to be created for an avatar.protected java.lang.String
componenttype
The component type name.protected boolean
createavatar
The flag for creating the avatar when an component is created.protected boolean
createcomponent
The flag for creating the component when an avatar is created.protected boolean
killavatar
The flag for deleting the avatar when component is killed.protected boolean
killcomponent
The flag for deleting the component when avatar is killed.protected java.lang.String
objecttype
The 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 IParsedExpression
getComponentName()
Get the component name expression, if any.java.lang.String
getComponentType()
Get the componenttype.java.lang.String
getObjectType()
Get the objecttype.boolean
isCreateAvatar()
Should avatar be created.boolean
isCreateComponent()
Should component be created.boolean
isKillAvatar()
Should avatar be killed.boolean
isKillComponent()
Should component being killed.void
setComponentName(IParsedExpression componentname)
Set the component name expression.void
setComponentType(java.lang.String componenttype)
void
setCreateAvatar(boolean createavatar)
void
setCreateComponent(boolean createcomponent)
void
setKillAvatar(boolean killavatar)
void
setKillComponent(boolean killcomponent)
void
setObjectType(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.
-
-