Package jason.stdlib
Class df_deregister
java.lang.Object
jason.asSemantics.DefaultInternalAction
jason.stdlib.df_register
jason.stdlib.df_deregister
- All Implemented Interfaces:
InternalAction,Serializable
@Manual(literal=".df_deregister(service[,type])",
hint="removes the agent in the Directory Facilitator as a provider of the service and, optionally, the type",
argsHint={"the service the agent is registered","the type of the service [optional]"},
argsType={"literal","string"},
examples={".df_deregister(\"sell(book)\"): deregister the agent as a book seller",".df_deregister(\"expert(stocks)\",\"finantial-consultant\"): deregister the agent as an expert in stocks of type \"finantial-consultant\""},
seeAlso={"jason.stdlib.df_register","jason.stdlib.df_search","jason.stdlib.df_subscribe"})
public class df_deregister
extends df_register
Internal action: .df_deregister(S [,T]).
Description: removes the agent in the Directory Facilitator as a provider of service S of type T (see FIPA specification). An optional second argument can be used to define the type of the service.
Parameters:
- - service (literal): the service the agent is registered.
- - type (string -- optional): the type of the service.
Examples:
-
.df_deregister("sell(book)"): deregister the agent as a book seller.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InternalActioncreate()execute(TransitionSystem ts, Unifier un, Term[] args) Executes the internal action.intintMethods inherited from class jason.stdlib.df_register
getService, getTypeMethods inherited from class jason.asSemantics.DefaultInternalAction
canBeUsedInContext, checkArguments, destroy, prepareArguments, suspendIntention
-
Constructor Details
-
df_deregister
public df_deregister()
-
-
Method Details
-
create
-
getMinArgs
public int getMinArgs()- Overrides:
getMinArgsin classdf_register
-
getMaxArgs
public int getMaxArgs()- Overrides:
getMaxArgsin classdf_register
-
execute
Description copied from interface:InternalActionExecutes the internal action. It should return a Boolean or an Iterator. A true boolean return means that the IA was successfully executed. An Iterator result means that there is more than one answer for this IA (e.g. see member internal action). - Specified by:
executein interfaceInternalAction- Overrides:
executein classdf_register- Throws:
Exception
-