jadex.application.space.envsupport.environment
Class AvatarMapping

java.lang.Object
  extended by jadex.application.space.envsupport.environment.AvatarMapping

public class AvatarMapping
extends Object

Relationship specification between an component type and an avatar type.


Field Summary
protected  IParsedExpression componentname
          The name of the component to be created for an avatar.
protected  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  String objecttype
          The object type.
 
Constructor Summary
AvatarMapping()
          Create a new avatar mapping.
AvatarMapping(String componenttype, String objecttype)
          Create a new avatar mapping.
AvatarMapping(String componenttype, String objecttype, boolean createavatar, boolean createcomponent, boolean killavatar, boolean killcomponent)
          Create a new avatar mapping.
 
Method Summary
 IParsedExpression getComponentName()
          Get the component name expression, if any.
 String getComponentType()
          Get the componenttype.
 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(String componenttype)
           
 void setCreateAvatar(boolean createavatar)
           
 void setCreateComponent(boolean createcomponent)
           
 void setKillAvatar(boolean killavatar)
           
 void setKillComponent(boolean killcomponent)
           
 void setObjectType(String object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componenttype

protected String componenttype
The component type name.


objecttype

protected 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(String componenttype,
                     String objecttype)
Create a new avatar mapping.


AvatarMapping

public AvatarMapping(String componenttype,
                     String objecttype,
                     boolean createavatar,
                     boolean createcomponent,
                     boolean killavatar,
                     boolean killcomponent)
Create a new avatar mapping.

Method Detail

getComponentType

public String getComponentType()
Get the componenttype.

Returns:
The componenttype.

getObjectType

public 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(String componenttype)
Parameters:
componenttype - the componenttype to set

setObjectType

public void setObjectType(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.


Copyright © 2010. All Rights Reserved.