Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 // Internal action code for project clone.mas2j
 
 package jason.stdlib;
 
public class clone extends DefaultInternalAction {
    @Override
    public Object execute(TransitionSystem tsUnifier unTerm[] argsthrows Exception {
        
        String agName = ((StringTerm)args[0]).getString();
        RuntimeServicesInfraTier services = ts.getUserAgArch().getRuntimeServices();
        services.clone(ts.getAg(), ts.getUserAgArch().getAgArchClassesChain(), agName);
        return true;
    }
New to GrepCode? Check out our FAQ X