博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Click Notes II - Click Script Language
阅读量:2346 次
发布时间:2019-05-10

本文共 1462 字,大约阅读时间需要 4 分钟。

The  was developed to configure Click routers, but nowadays you also can use it to write test cases for Click elements.

The Click Script Language defines a configuration graph, which consists of connected elements. Each element has an element class specified by class name. Elements are connected through their input and output ports. Input and output ports are distinguished by number, while elements are distinguished by name.

Click configuration strings are comma-separated lists of arguments delimited by parentheses. The fundamental syntax of Click Script Language is:

name :: class(config-string);    // declare element object 
name1, name2, ..., nameN :: class(config); // declaration shorhand
name1[port1] -> [port2]name2; // connect two elements
name1[port1] -> [port2a]name2[port2b] -> [port3]name3; // piggyback connections
name1 -> name2 :: class(config-string) -> name3; // declaring elements inside connections is allowed
name1 -> class(config-string) -> name3; // anonymous element
require(requirement[, requirement …]); // list config requirements
n1, n2 :: class -> n3; // many-to-one connections
// many-to-many connections:
// A many-to-many connection matches output ports to input ports.
// There must be as many ports on the left as on the right.
// '=>' is the many-to-many connector.
c[0], c[1], c[2] => Paint(0), Paint(1), Paint(2) -> next;
c => Paint(0), Paint(1), Paint(2) -> next;

- See more at:

转载地址:http://vdpvb.baihongyu.com/

你可能感兴趣的文章
系统--A disk read error occurred Press Ctrl+Alt+d...
查看>>
Some projects cannot be imported because they a...
查看>>
ubuntu-android--make: *** [out/host/linux-x86/o...
查看>>
原子变量与synchronized详细解释
查看>>
java.lang.OutOfMemoryError: PermGen space及其解决方法
查看>>
如何让ajaxfileupload.js支持IE9,IE10,并可以传递多个参数?
查看>>
highcharts扩展tooltip提示异步信息
查看>>
activiti--History 历史配置
查看>>
activiti--部署bpmn/bar文件详解
查看>>
win7使用Putty 连接debain
查看>>
debain 常用命令
查看>>
debain 安装amd显卡驱动
查看>>
Java Jacob 打印word文档
查看>>
Java Freemarker 根据模板生成Word
查看>>
Java Mybatis Plus 集成与使用
查看>>
Java 一台电脑部署多个tomcat服务
查看>>
Java WinSw 安装Jar成Windows服务
查看>>
Linux安装Jar成服务
查看>>
Java SSH连接mysql数据库
查看>>
计算机使用常见问题与答案
查看>>