Package jade.domain.mobility
Class CloneAction
- java.lang.Object
-
- jade.domain.mobility.MoveAction
-
- jade.domain.mobility.CloneAction
-
- All Implemented Interfaces:
AgentAction,Concept,ContentElement,Term,Serializable,Serializable
public class CloneAction extends MoveAction
This class represents theclone-agentaction, requesting to clone an agent within the platform.- Version:
- $Date$ $Revision$
- Author:
- Giovanni Rimassa - Universita' di Parma
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CloneAction()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNewName()Retrieve the value of thenew-nameslot of this event, containing the new local name (i.e.voidsetNewName(String nn)Set thenew-nameslot of this action.-
Methods inherited from class jade.domain.mobility.MoveAction
getMobileAgentDescription, setMobileAgentDescription
-
-
-
-
Method Detail
-
setNewName
public void setNewName(String nn)
Set thenew-nameslot of this action.- Parameters:
nn- The new local name (i.e. without the platform ID) for the new, cloned agent.
-
getNewName
public String getNewName()
Retrieve the value of thenew-nameslot of this event, containing the new local name (i.e. without the platform ID) for the new, cloned agent.- Returns:
- The value of the
new-nameslot, ornullif no value was set.
-
-