国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 開發(fā)設(shè)計 > 正文

Shark中的ToolAgent用法-JavaClassToolAgent

2019-11-18 11:34:13
字體:
供稿:網(wǎng)友

Shark幫助文檔中原文如下:

  • javaClassToolAgent - This tool agent executes Java classes, by calling its static method called "execute". When calling this tool agent's invokeapplication() method, the application name parameter should be the full name of the class that should be executed by this tool agent. So far, we defined a few classes that execute simple arithmetic Operation, generation of random number, and one that performs waiting. There are also two classes contributed to by Paloma Trigueros Cabezon, and they can be used to use this tool agent to send mails.

    This tool agent is able to "understand" the extended attribute with the following name:

    • AppName - value of this attribute should rePResent the class name to be executed.

    首先要知道這是一種把一個類來作為一個應(yīng)用的方法,具體做法如下:

    1、創(chuàng)建一個新類javaclass.java,類中必須包含一個靜態(tài)方法execute,該方法即為希望該類完成的行為。

    2、編譯類文件為javaclass.class,并放入:安裝路徑/lib/engine/sharktoolagent-standard.jar中。

    3、這樣在編輯process時,就可以應(yīng)用這些自己編寫的類了。可以定義application了,注重定義兩個可擴(kuò)展屬性:ToolAgentClass=JavaClassToolAgent,AppName=類名(javaclass)。



  • 發(fā)表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發(fā)表
    主站蜘蛛池模板: 岢岚县| 政和县| 延安市| 万源市| 怀仁县| 南开区| 太保市| 金山区| 确山县| 鲁甸县| 龙岩市| 晋州市| 山西省| 宿州市| 洞口县| 应城市| 牡丹江市| 广南县| 聊城市| 梁山县| 泰宁县| 彭水| 沅江市| 临江市| 永宁县| 博爱县| 泸州市| 赤城县| 梁平县| 额敏县| 开封县| 子洲县| 宁阳县| 湘乡市| 凉城县| 交口县| 镇远县| 湄潭县| 封丘县| 绩溪县| 顺义区|