📄 lookupvcpath.java%
字号:
/*
This software was produced as a part of research
activities. It is not intended to be used as commercial
or industrial software by any organisation. Except as
explicitly stated, no guarantees are given as to its
reliability or trustworthiness if used for purposes other
than those for which it was originally intended.
(c) British Telecommunications plc 1999.
*/
/*
This stub file was automatically generated by ZeusAgentGenerator version 1.0_b1
*/
import java.util.*;
import zeus.util.*;
import zeus.concepts.*;
import zeus.actors.ZeusTask;
public class LookupVCPath extends ZeusTask {
protected void exec() {
/*
Add the task execution code here. The following variables are defined:
protected Fact[][] inputArgs;
protected Fact[][] outputArgs;
Before exec() is called inputArgs will contain the input
Facts consumed by the task. After execution, set outputArgs to
contain the output Facts produced by the task.
*/
// The Input Facts:
// The Output Facts:
Fact[] _path; // VCPath
/* USER CODE STARTS */
System.out.println("-Expected Input-");
for(int i = 0; i < expInputArgs.length; i++ )
System.out.println(expInputArgs[i].pprint());
System.out.println("-Input-");
for(int j = 0; j < inputArgs.length; j++) {
System.out.println("Input Fact["+j+"]");
for(int i = 0; i < inputArgs[j].length; i++)
System.out.println(inputArgs[j][i].pprint());
}
System.out.println("-Expected Output-");
for(int i = 0; i < expOutputArgs.length; i++ )
System.out.println(expOutputArgs[i].pprint());
System.out.println("-Output-");
_path = new Fact[1];
_path[0] = new Fact(Fact.FACT,expOutputArgs[0]);
_path[0].setValue("element_1","Scooby");
_path[0].setValue("element_2","Doddy");
_path[0].setValue("element_3","Do");
_path[0].setValue("element_4","nil");
System.out.println(_path[0].pprint());
/* USER CODE ENDS */
outputArgs = new Fact[1][];
outputArgs[0] = _path;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -