tp钱包官网下载|dtools

作者: tp钱包官网下载
2024-03-07 18:21:53

关于Dtools - Dtools用户手册

关于Dtools - Dtools用户手册

Dtools用户手册Search⌃K关于DtoolsWeb3桌面搜索引擎小组件原生插件Dapp链上资产管理投资组合NFT我的插件我的Dapps常见问题使用Pass代理问题原生插件blockscan chatcrypto pricefaucetsgas trackerNFT transfertoken approvalworld clockchainlistspeed testunit converter智能合约合约开源地址Zeus监控系统free mint实时mintNFT日历代币上新Powered By GitBook关于DtoolsDtools是什么?Dtools(Decentralized Tools)是下一代的Web3 ALL-IN-ONE工具。支持所有主流桌面/移动端操作系统,包括 MacOS、Windows、iOS 和 Android。内置多种Web3功能模块和基于去中心化技术所构建的Web3插件生态系统。Dtools在 Web2 和 Web3 之间架起了一座彩虹桥。我们已经发布了Windows和MacOS上的桌面端产品,可以前往Dtools官方网站直接下载体验。我们的使命Web3 是一个充满机遇和挑战的美妙新世界。我们向每一位以勇气和信念踏上这片土地的探险家致敬。我的使命就是不断创新,为每一位 Web3 探索者提供最高效、最方便、最实用的产品。我们的愿景作为Web3世界的一员,我们在从Web2到Web3的道路上遇到了很多困难和障碍,感谢一路无私帮助我们的朋友和社区,这让我们明白拥有一位能够驱散黑暗的领导者是多么重要。做Dtools这款产品的初衷很简单:我们希望后来者不用翻山越岭,来到这个世外桃源。我们正在竭尽全力为Web3搭建一座美丽的彩虹桥,帮助每一位不甘平凡的探索者从Web2的世界迈向Web3的大门。我们的价值观简单地做一个好人,是我们唯一和永恒的价值观。我们希望通过我们的工作、努力、创造和贡献能够得到认可和回报。Next - Web3桌面搜索引擎小组件Last modified 1yr agoOn this pageDtools是什么?我们的使命我们的愿景我们的价值观

uTools官网 - 新一代效率工具平台

uTools官网 - 新一代效率工具平台

首页

开发者文档

猿料社区

新一代效率工具平台

自由组合插件应用,打造专属你的趁手工具集

下载 Windows 版本

Apple(M1、M2) 版本

uTools 视频介绍

轻量、安全、简洁

一种全新的软件使用体验

呼之即来,用完即走

快捷键「Alt + 空格」,呼出 uTools 搜索框

超级面板,方便快捷

按下鼠标中键,弹出 uTools 超级面板

媒体评价

“ 相见恨晚,这才是横跨三大操作系统的终极神器。”

《差评》 - 微信公众号

“ 自从下载了 uTools 总感觉自己电脑开了外挂,真的太太太好用了!”

《topbook》

“ 这种插件化的管理方式,为用户带来了很大的自由度,能够帮助你打造出更趁手的「私人专属工具库」 ”

《少数派》

“ 「一切皆插件」让 uTools 拥有了无限的生命力,可以预计在未来越来越多的插件出现,会使得 uTools 变成一个全能的效率利器 ”

《iplaysoft》

Windows 7, 10, 11

Windows 64 位版本

32 位版本

macOS 10.15+

MacOS Intel 版本

Apple(M1、M2) 版本

UOS, Ubuntu, Deepin

下载 Linux 版本

uTools 公众号

感谢关注

帮助

联系我们

常见问题

开发者文档

社区讨论

合作与资源

企业内网部署

活动赞助

自媒体赞助

条款与隐私

用户协议

隐私政策

开发者协议

© 2023 福州猿力信息科技有限公司闽ICP备18007474号

你的浏览器不支持 video 标签.

DAEMON Tools - 最棒的映像制作软件满足所有你的需求 - DAEMON-Tools.cc

DAEMON Tools - 最棒的映像制作软件满足所有你的需求 - DAEMON-Tools.cc

DAEMON Tools stands with Ukraine. You can help

here.

Daemon Tools

Lite

Ultra

Pro

Catch!

reWASD

ARM

下载

技术支持

登录

注册

注册

登录

丢失密码?

登录

注册

DAEMON Tools Lite

Laconic. Customizable. Free

Get your free version of world-known imaging software ready for Windows 11 and Windows 10. Use basic functions without any charges or choose from 15+ paid tools and get Lifetime updates as a gift.

下载

比较产品

DAEMON Tools Ultra

智慧.简单.旗舰

遇见全新的映像制作软件,并含了高级模拟、强大的功能、高级的工具和多功处里。正在寻找它吗? 这就是。

下载

比较产品

DAEMON Tools Pro

强大.经典.时间证实

试试我们的粉丝最喜爱的光盘模拟软件,并包含专业级的映象制作工具和经典的系统介面。模拟DT、SCSI、IDE和HDD设备,并制作、编辑、刻录和装载映像。

下载

比较产品

reWASD

Powerful Gamepad Mapper

Brand-new app to remap Xbox & DualShock controls to keyboard keys.Need more freedom to adjust your controller?Want to map Xbox Elite paddles to keys? reWASD — truly powerful gamepad mapper — is here to help.

现在购买

下载

奖项

订阅新闻邮件

跟随我们

中文

English

Deutsch

Français

Italiano

Spanish

Portuguese (Portugal)

Portuguese (Brazil)

Polski

Русский

中文

日本語

한국어

Türkçe

产品

比较

Ultra

Lite

Pro

Catch!

Mac

reWASD

技术支持

常见问题

博客

联系我们

政策

隐私政策

条款

© 2005 - 2024 Disc Soft FZE LLC

我们使用 Cookie 来跟进使用情形及偏好.

查看详情

哇! 您得到了幸运的折扣!

完整套件

DAEMON Tools Lite 具有更好的功能。基本的应用程序版本允许安装, 抓取和保持手头的映像, 以及8個高级功能, 使建兴非常强大。不要浪费一分钟: 以一个惊人的折扣获取他们!

$56.99 $17.99

现在购买

优惠将在24小时内过期!

感谢选择 DAEMON Tools Ultra!

如果您的下载没有自动开始,请点击.

DAEMON Tools Ultra 安装指南

单击安装按钮 以启动安装向导。

跟随屏幕指示继续安装.

运行您的 DAEMON Tools Ultra.

哇! 您得到了幸运的折扣!

12-month Subscription

Buy Now

$50.00 90.00

感谢选择 DAEMON Tools Pro!

如果您的下载没有自动开始,请点击.

DAEMON Tools Pro 安装指南

跟随屏幕指示继续安装.

运行您的 DAEMON Tools Pro.

选择您的订阅方案

Drools 规则引擎应用 看这一篇就够了 - 知乎

Drools 规则引擎应用 看这一篇就够了 - 知乎切换模式写文章登录/注册Drools 规则引擎应用 看这一篇就够了养乐多想了解更多相关学习资料请点赞转发+关注私信我回复000即可获1 .场景1.1需求商城系统消费赠送积分

100元以下, 不加分

100元-500元 加100分

500元-1000元 加500分

1000元 以上 加1000分

......

1.2传统做法1.2.1 if...elseif (order.getAmout() <= 100){

order.setScore(0);

addScore(order);

}else if(order.getAmout() > 100 && order.getAmout() <= 500){

order.setScore(100);

addScore(order);

}else if(order.getAmout() > 500 && order.getAmout() <= 1000){

order.setScore(500);

addScore(order);

}else{

order.setScore(1000);

addScore(order);

}1.2.2 策略interface Strategy {

addScore(int num1,int num2);

}

class Strategy1 {

addScore(int num1);

}

......................

interface StrategyN {

addScore(int num1);

}

class Environment {

private Strategy strategy;

public Environment(Strategy strategy) {

this.strategy = strategy;

}

public int addScore(int num1) {

return strategy.addScore(num1);

}

}1.2.3 问题?以上解决方法问题思考:如果需求变更,积分层次结构增加,积分比例调整?数据库?遇到的问题瓶颈:第一,我们要简化if else结构,让业务逻辑和数据分离!第二,分离出的业务逻辑必须要易于编写,至少单独编写这些业务逻辑,要比写代码快!第三,分离出的业务逻辑必须要比原来的代码更容易读懂!第四,分离出的业务逻辑必须比原来的易于维护,至少改动这些逻辑,应用程序不用重启!2.是什么2.1概念规则引擎由推理引擎发展而来,是一种嵌入在应用程序中的组件,实现了将业务决策从应用程序代码中分离出来,并使用预定义的语义模块编写业务决策。接受数据输入,解释业务规则,并根据业务规则做出业务决策需要注意的是规则引擎并不是一个具体的技术框架,而是指的一类系统,即业务规则管理系统。目前市面上具体的规则引擎产品有:drools、VisualRules、iLog等在很多企业的 IT 业务系统中,经常会有大量的业务规则配置,而且随着企业管理者的决策变化,这些业务规则也会随之发生更改。为了适应这样的需求,我们的 IT 业务系统应该能快速且低成本的更新。适应这样的需求,一般的作法是将业务规则的配置单独拿出来,使之与业务系统保持低耦合。目前,实现这样的功能的程序,已经被开发成为规则引擎。2.2 起源2.3 原理--基于 rete 算法的规则引擎2.3.1 原理在 AI 领域,产生式系统是一个很重要的理论,产生式推理分为正向推理和逆向推理产生式,其规则的一般形式是:IF 条件 THEN 操作。rete 算法是实现产生式系统中正向推理的高效模式匹配算法,通过形成一个 rete 网络进行模式匹配,利用基于规则的系统的时间冗余性和结构相似性特征 ,提高系统模式匹配效率正向推理(Forward-Chaining)和反向推理(Backward-Chaining)(1)正向推理也叫演绎法,由事实驱动,从一个初始的事实出发,不断地从应用规则得出结论。首先在候选队列中选择一条规则作为启用规则进行推理,记录其结论作为下一步推理的证据。如此重复这个过程,直到再无可用规则可被选用或者求得了所要求的解为止。(2)反向推理也叫归纳法,由目标驱动,首先提出某个假设,然后寻找支持该假设的证据,若所需的证据都能找到,说明原假设是正确的,若无论如何都找不到所需要的证据,则说明原假设不成立,此时需要另作新的假设。2.3.2 rete算法Rete 算法最初是由卡内基梅隆大学的 Charles L.Forgy 博士在 1974 年发表的论文中所阐述的算法 , 该算法提供了专家系统的一个高效实现。自 Rete 算法提出以后 , 它就被用到一些大型的规则系统中 , 像 ILog、Jess、JBoss Rules 等都是基于 RETE 算法的规则引擎 。Rete 在拉丁语中译为”net”,即网络。Rete 匹配算法是一种进行大量模式集合和大量对象集合间比较的高效方法,通过网络筛选的方法找出所有匹配各个模式的对象和规则。其核心思想是将分离的匹配项根据内容动态构造匹配树,以达到显著降低计算量的效果。Rete 算法可以被分为两个部分:规则编译和规则执行 。当 Rete 算法进行事实的断言时,包含三个阶段:匹配、选择和执行,称做 match-select-act cycle。2.4 规则引擎应用场景业务领域示例2.5 Drools 介绍Drools 具有一个易于访问企业策略、易于调整以及易于管理的开源业务 规则引擎,符合业内标准,速度快、效率高。业务分析师或审核人员可以利用它轻松查看业务规则,从而检验已编码的规则是否执行了所需的业务规则。其前身是 Codehaus 的一个开源项目叫 Drools,后被纳入 JBoss 门下,更名为 JBoss Rules,成为了 JBoss 应用服务器的规则引擎。Drools 被分为两个主要的部分:编译和运行时。编译是将规则描述文件按 ANTLR 3 语法进行解析,对语法进行正确性的检查,然后产生一种中间结构“descr”,descr 用 AST 来描述规则。目前,Drools 支持四种规则描述文件,分别是:drl 文件、 xls 文件、brl 文件和 dsl 文件,其中,常用的描述文件是 drl 文件和 xls 文件,而 xls 文件更易于维护,更直观,更为被业务人员所理解。运行时是将 AST传到 PackageBuilder,由 PackagBuilder来产生 RuleBase,它包含了一个或多个 Package 对象。3 .消费赠送积分案例上图为实际用法:3.1 第一步: 创建工程,引入jar由于当前java开发,普通使用springboot ,本课程以springboot为基本框架演示jar 依赖,注意,排除spring相关依赖

org.kie

kie-spring

${drools.version}

org.springframework

spring-tx

org.springframework

spring-beans

org.springframework

spring-core

org.springframework

spring-context

3.2 创建 drools 自动配置类drools 在spring 或者springboot中用法一样,其实就是创建好一些beanpackage com.ityml.drools.config;

import org.kie.api.KieBase;

import org.kie.api.KieServices;

import org.kie.api.builder.*;

import org.kie.api.runtime.KieContainer;

import org.kie.api.runtime.KieSession;

import org.kie.internal.io.ResourceFactory;

import org.kie.spring.KModuleBeanFactoryPostProcessor;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;

import org.springframework.context.annotation.Bean;

import org.springframework.context.annotation.Configuration;

import org.springframework.core.io.Resource;

import org.springframework.core.io.support.PathMatchingResourcePatternResolver;

import org.springframework.core.io.support.ResourcePatternResolver;

import java.io.IOException;

/**

*

规则引擎自动配置类

* @author ityml

* @date 2019/9/10 11:20

*/

@Configuration

public class DroolsAutoConfiguration {

private static final String RULES_PATH = "rules/";

private KieServices getKieServices() {

return KieServices.Factory.get();

}

@Bean

@ConditionalOnMissingBean(KieFileSystem.class)

public KieFileSystem kieFileSystem() throws IOException {

KieFileSystem kieFileSystem = getKieServices().newKieFileSystem();

for (Resource file : getRuleFiles()) {

kieFileSystem.write(ResourceFactory.newClassPathResource(RULES_PATH + file.getFilename(), "UTF-8"));

}

return kieFileSystem;

}

private Resource[] getRuleFiles() throws IOException {

ResourcePatternResolver resourcePatternResolver = new PathMatchingResourcePatternResolver();

return resourcePatternResolver.getResources("classpath*:" + RULES_PATH + "**/*.*");

}

@Bean

@ConditionalOnMissingBean(KieContainer.class)

public KieContainer kieContainer() throws IOException {

final KieRepository kieRepository = getKieServices().getRepository();

kieRepository.addKieModule(() -> kieRepository.getDefaultReleaseId());

KieBuilder kieBuilder = getKieServices().newKieBuilder(kieFileSystem());

kieBuilder.buildAll();

KieContainer kieContainer = getKieServices().newKieContainer(kieRepository.getDefaultReleaseId());

return kieContainer;

}

@Bean

@ConditionalOnMissingBean(KieBase.class)

public KieBase kieBase() throws IOException {

return kieContainer().getKieBase();

}

}3.2订单实体类@Data

@Accessors(chain = true)

public class Order {

/**

* 订单原价金额

*/

private int price;

/**

*下单人

*/

private User user;

/**

*积分

*/

private int score;

/**

* 下单日期

*/

private Date bookingDate;

}3.3规则引擎文件package rules

import com.ityml.drools.entity.Order

rule "zero"

no-loop true

lock-on-active true

salience 1

when

$s : Order(amout <= 100)

then

$s.setScore(0);

update($s);

end

rule "add100"

no-loop true

lock-on-active true

salience 1

when

$s : Order(amout > 100 && amout <= 500)

then

$s.setScore(100);

update($s);

end

rule "add500"

no-loop true

lock-on-active true

salience 1

when

$s : Order(amout > 500 && amout <= 1000)

then

$s.setScore(500);

update($s);

end

rule "add1000"

no-loop true

lock-on-active true

salience 1

when

$s : Order(amout > 1000)

then

$s.setScore(1000);

update($s);

end3.4客户端/**

* 需求

* 计算额外积分金额 规则如下: 订单原价金额

* 100以下, 不加分

* 100-500 加100分

* 500-1000 加500分

* 1000 以上 加1000分

*/

public class DroolsOrderTests extends DroolsApplicationTests {

@Resource

private KieContainer kieContainer;

@Test

public void Test() throws Exception {

List orderList = getInitData();

for (Order order : orderList) {

if (order.getAmout() <= 100) {

order.setScore(0);

addScore(order);

} else if (order.getAmout() > 100 && order.getAmout() <= 500) {

order.setScore(100);

addScore(order);

} else if (order.getAmout() > 500 && order.getAmout() <= 1000) {

order.setScore(500);

addScore(order);

} else {

order.setScore(1000);

addScore(order);

}

}

}

@Test

public void droolsOrderTest() throws Exception {

KieSession kieSession = kieContainer.newKieSession();

List orderList = getInitData();

for (Order order: orderList) {

// 1-规则引擎处理逻辑

kieSession.insert(order);

kieSession.fireAllRules();

// 2-执行完规则后, 执行相关的逻辑

addScore(order);

}

kieSession.dispose();

}

private static void addScore(Order o){

System.out.println("用户" + o.getUser().getName() + "享受额外增加积分: " + o.getScore());

}

private static List getInitData() throws Exception {

List orderList = new ArrayList<>();

DateFormat df = new SimpleDateFormat("yyyy-MM-dd");

{

Order order = new Order();

order.setAmout(80);

order.setBookingDate(df.parse("2015-07-01"));

User user = new User();

user.setLevel(1);

user.setName("Name1");

order.setUser(user);

order.setScore(111);

orderList.add(order);

}

{

Order order = new Order();

order.setAmout(200);

order.setBookingDate(df.parse("2015-07-02"));

User user = new User();

user.setLevel(2);

user.setName("Name2");

order.setUser(user);

orderList.add(order);

}

{

Order order = new Order();

order.setAmout(800);

order.setBookingDate(df.parse("2015-07-03"));

User user = new User();

user.setLevel(3);

user.setName("Name3");

order.setUser(user);

orderList.add(order);

}

{

Order order = new Order();

order.setAmout(1500);

order.setBookingDate(df.parse("2015-07-04"));

User user = new User();

user.setLevel(4);

user.setName("Name4");

order.setUser(user);

orderList.add(order);

}

return orderList;

}

}3.5 drools 开发小结3.5.1 drools 组成drools规则引擎由以下几部分构成:Working Memory(工作内存)Rules(规则库)FactsProduction memoryWorking memory:Agenda如下图所示:3.5.2 相关概念说明Working Memory:工作内存,drools规则引擎会从Working Memory中获取数据并和规则文件中定义的规则进行模式匹配,所以我们开发的应用程序只需要将我们的数据插入到Working Memory中即可,例如本案例中我们调用kieSession.insert(order)就是将order对象插入到了工作内存中。Fact:事实,是指在drools 规则应用当中,将一个普通的JavaBean插入到Working Memory后的对象就是Fact对象,例如本案例中的Order对象就属于Fact对象。Fact对象是我们的应用和规则引擎进行数据交互的桥梁或通道。Rules:规则库,我们在规则文件中定义的规则都会被加载到规则库中。Pattern Matcher:匹配器,将Rule Base中的所有规则与Working Memory中的Fact对象进行模式匹配,匹配成功的规则将被激活并放入Agenda中。Agenda:议程,用于存放通过匹配器进行模式匹配后被激活的规则。3.5.3 规则引擎执行过程3.5.4 KIE介绍在上述分析积分兑换的过程中,简单地使用了 "kie "开头的一些类名,Kie全称为Knowledge Is Everything,即"知识就是一切"的缩写,是Jboss一系列项目的总称。官网描述:这个名字渗透在GitHub账户和Maven POMs中。随着范围的扩大和新项目的展开,KIE(Knowledge Is Everything的缩写)被选为新的组名。KIE的名字也被用于系统的共享方面;如统一的构建、部署和使用。4.规则文件开发4.1 规则文件构成在使用Drools时非常重要的一个工作就是编写规则文件,通常规则文件的后缀为.drl。drl是Drools Rule Language的缩写。在规则文件中编写具体的规则内容。一套完整的规则文件内容构成如下:Drools支持的规则文件,除了drl形式,还有Excel文件类型的。4.2 规则体语法结构规则体是规则文件内容中的重要组成部分,是进行业务规则判断、处理业务结果的部分。规则体语法结构如下:rule "ruleName"

attributes

when

LHS

then

RHS

endrule:关键字,表示规则开始,参数为规则的唯一名称。attributes:规则属性,是rule与when之间的参数,为可选项。when:关键字,后面跟规则的条件部分。LHS(Left Hand Side):是规则的条件部分的通用名称。它由零个或多个条件元素组成。如果LHS为空,则它将被视为始终为true的条件元素。 (左手边)then:关键字,后面跟规则的结果部分。RHS(Right Hand Side):是规则的后果或行动部分的通用名称。 (右手边)end:关键字,表示一个规则结束。4.3 注释在drl形式的规则文件中使用注释和Java类中使用注释一致,分为单行注释和多行注释。单行注释用"//"进行标记,多行注释以"/"开始,以"/"结束。如下示例://规则rule1的注释,这是一个单行注释

rule "rule1"

when

then

System.out.println("rule1触发");

end

/*

规则rule2的注释,

这是一个多行注释

*/

rule "rule2"

when

then

System.out.println("rule2触发");

end4.4 Pattern模式匹配前面我们已经知道了Drools中的匹配器可以将Rule Base中的所有规则与Working Memory中的Fact对象进行模式匹配,那么我们就需要在规则体的LHS部分定义规则并进行模式匹配。LHS部分由一个或者多个条件组成,条件又称为pattern。pattern的语法结构为:绑定变量名:Object(Field约束)其中绑定变量名可以省略,通常绑定变量名的命名一般建议以$开始。如果定义了绑定变量名,就可以在规则体的RHS部分使用此绑定变量名来操作相应的Fact对象。Field约束部分是需要返回true或者false的0个或多个表达式。例如我们的入门案例中:rule "add100"

no-loop true

lock-on-active true

salience 1

when

$order : Order(price > 100 && price <= 500)

then

$order.setScore(100);

update($s);

end通过上面的例子我们可以知道,匹配的条件为:1、工作内存中必须存在Order这种类型的Fact对象-----类型约束2、Fact对象的price属性值必须大于100------属性约束3、Fact对象的price属性值必须小于等于500------属性约束以上条件必须同时满足当前规则才有可能被激活。绑定变量既可以用在对象上,也可以用在对象的属性上。例如上面的例子可以改为:rule "add100"

no-loop true

lock-on-active true

salience 1

when

$order : Order($price:price > 100 && amopriceut <= 500)

then

System.out.println("$price=" + $price);

$s.setScore(100);

update($s);

endLHS部分还可以定义多个pattern,多个pattern之间可以使用and或者or进行连接,也可以不写,默认连接为and。rule "add100"

no-loop true

lock-on-active true

salience 1

when

$order : Order(price > 100 && price <= 500) and

$user : User(level>3)

then

System.out.println($order.getUser());

$order.setScore(100);

update($order);

end4.5 比较操作符Drools提供的比较操作符,如下表:前6个比较操作符和Java中的完全相同,下面我们重点学习后6个比较操作符。4.5.1 语法contains | not contains语法结构Object(Field[Collection/Array] contains value)Object(Field[Collection/Array] not contains value)memberOf | not memberOf语法结构Object(field memberOf value[Collection/Array])Object(field not memberOf value[Collection/Array])matches | not matches语法结构Object(field matches "正则表达式")Object(field not matches "正则表达式")contain是前面包含后面,memberOf是后面包含前面。4.5.2 操作步骤第一步:创建实体类,用于测试比较操作符package com.ityml.drools.entity;

import lombok.Data;

import lombok.experimental.Accessors;

import java.util.List;

/**

* @author ityml

* @date 2021-06-16 21:11

*/

@Data

@Accessors(chain = true)

public class ComparisonEntity {

/**

*名字集合

*/

private String names;

/**

* 字符串集合

*/

private List list;

}第二步:在/resources/rules下创建规则文件comparison.drlpackage rules

import com.ityml.drools.entity.ComparisonEntity

/*

用于测试Drools提供的比较操作符

*/

//测试比较操作符contains

rule "rule_comparison_contains"

when

ComparisonEntity(names contains "张三")

ComparisonEntity(list contains names)

then

System.out.println("规则rule_comparison_contains触发");

end

//测试比较操作符not contains

rule "rule_comparison_notContains"

when

ComparisonEntity(names not contains "张三")

ComparisonEntity(list not contains names)

then

System.out.println("规则rule_comparison_notContains触发");

end

//测试比较操作符memberOf

rule "rule_comparison_memberOf"

when

ComparisonEntity(names memberOf list)

then

System.out.println("规则rule_comparison_memberOf触发");

end

//测试比较操作符not memberOf

rule "rule_comparison_notMemberOf"

when

ComparisonEntity(names not memberOf list)

then

System.out.println("规则rule_comparison_notMemberOf触发");

end

//测试比较操作符matches

rule "rule_comparison_matches"

when

ComparisonEntity(names matches "张.*")

then

System.out.println("规则rule_comparison_matches触发");

end

//测试比较操作符not matches

rule "rule_comparison_notMatches"

when

ComparisonEntity(names not matches "张.*")

then

System.out.println("规则rule_comparison_notMatches触发");

end第三步:编写单元测试package com.ityml.drools.client;

import com.ityml.drools.DroolsApplicationTests;

import com.ityml.drools.entity.ComparisonEntity;

import org.junit.jupiter.api.Test;

import org.kie.api.KieBase;

import org.kie.api.runtime.KieSession;

import javax.annotation.Resource;

import java.util.ArrayList;

import java.util.List;

/**

* @author ityml

* @date 2021-06-17 23:46

*/

public class ComparisonTest extends DroolsApplicationTests {

@Resource

public KieBase kieBase;

@Test

public void testComparison(){

KieSession kieSession = kieBase.newKieSession();

ComparisonEntity comparisonEntity = new ComparisonEntity();

comparisonEntity.setNames("张三");

List list = new ArrayList<>();

list.add("张三");

list.add("李四");

comparisonEntity.setList(list);

kieSession.insert(comparisonEntity);

kieSession.fireAllRules();

kieSession.dispose();

}

}4.6 执行指定规则通过前面的案例可以看到,我们在调用规则代码时,满足条件的规则都会被执行。那么如果我们只想执行其中的某个规则如何实现呢?Drools给我们提供的方式是通过规则过滤器来实现执行指定规则。对于规则文件不用做任何修改,只需要修改Java代码即可,如下://通过规则过滤器实现只执行指定规则

kieSession.fireAllRules(new kieSession.fireAllRules(new RuleNameEqualsAgendaFilter("rule_filter_1"));4.7 关键字Drools的关键字分为:硬关键字(Hard keywords)和软关键字(Soft keywords)。硬关键字是我们在规则文件中定义包名或者规则名时明确不能使用的,否则程序会报错。软关键字虽然可以使用,但是不建议使用。硬关键字包括:true false null软关键字包括:lock-on-active date-effective date-expires no-loop auto-focus activation-group agenda-group ruleflow-group entry-point duration package import dialect salience enabled attributes rule extend when then template query declare function global eval not in or and exists forall accumulate collect from action reverse result end over init比如:

rule true //不可以

rule "true" 可以5. 规则属性 attributes前面我们已经知道了规则体的构成如下:rule "ruleName"

attributes

when

LHS

then

RHS

end本章节就是针对规则体的attributes属性部分进行讲解。Drools中提供的属性如下表(部分属性):5.1 enabled属性enabled属性对应的取值为true和false,默认值为true。用于指定当前规则是否启用,如果设置的值为false则当前规则无论是否匹配成功都不会触发package rules

import com.ityml.drools.entity.AttributesEnabledEntity

/*

用于测试Drools 属性:enabled

*/

//测试enabled

rule "rule_attributes_enabled"

enabled false

when

AttributesEnabledEntity(num > 10)

then

System.out.println("规则rule_attributes_enabled触发");

end5.2 dialect属性dialect属性用于指定当前规则使用的语言类型,取值为java和mvel,默认值为java。注:mvel是一种基于java语法的表达式语言。虽然mvel吸收了大量的java语法,但作为一个表达式语言,还是有着很多重要的不同之处,以达到更高的效率,比如:mvel像正则表达式一样,有直接支持集合、数组和字符串匹配的操作符。除了表达式语言外,mvel还提供了用来配置和构造字符串的模板语言。mvel2.x表达式包含以下部分的内容:属性表达式,布尔表达式,方法调用,变量赋值,函数定义5.3 salience属性salience属性用于指定规则的执行优先级,取值类型为Integer。数值越大越优先执行。每个规则都有一个默认的执行顺序,如果不设置salience属性,规则体的执行顺序为由上到下。drl文件内容如下:package rules

import com.ityml.drools.entity.AttributesSalienceEntity

/*

用于测试Drools 属性:salience

*/

rule "rule_attributes_salience_1"

when

AttributesSalienceEntity(flag == true)

then

System.out.println("规则 rule_attributes_salience_1 触发");

end

rule "rule_attributes_salience_2"

when

AttributesSalienceEntity(flag == true)

then

System.out.println("规则 rule_attributes_salience_2 触发");

end

rule "rule_attributes_salience_3"

when

AttributesSalienceEntity(flag == true)

then

System.out.println("规则 rule_attributes_salience_3 触发");

end通过控制台可以看到,由于以上三个规则没有设置salience属性,所以执行的顺序是按照规则文件中规则的顺序由上到下执行的。接下来我们修改一下文件内容:package rules

import com.ityml.drools.entity.AttributesSalienceEntity

/*

用于测试Drools 属性:salience

*/

rule "rule_attributes_salience_1"

salience 10

when

AttributesSalienceEntity(flag == true)

then

System.out.println("规则 rule_attributes_salience_1 触发");

end

rule "rule_attributes_salience_2"

salience 20

when

AttributesSalienceEntity(flag == true)

then

System.out.println("规则 rule_attributes_salience_2 触发");

end

rule "rule_attributes_salience_3"

salience 1

when

AttributesSalienceEntity(flag == true)

then

System.out.println("规则 rule_attributes_salience_3 触发");

end通过控制台可以看到,规则文件执行的顺序是按照我们设置的salience值由大到小顺序执行的。建议在编写规则时使用salience属性明确指定执行优先级。5.4 no-loop属性no-loop属性用于防止死循环,当规则通过update之类的函数修改了Fact对象时,可能使当前规则再次被激活从而导致死循环。取值类型为Boolean,默认值为false。测试步骤如下:第一步:编写规则文件package rules

import com.ityml.drools.entity.AttributesNoLoopEntity

/*

用于测试Drools 属性:no-loop

*/

rule "rule_attributes_noloop"

//no-loop true

when

$attributesNoLoopEntity:AttributesNoLoopEntity(num > 1)

then

update($attributesNoLoopEntity)

System.out.println("规则 rule_attributes_noloop 触发");

end第二步:编写单元测试@Test

public void test(){

KieSession kieSession = kieBase.newKieSession();

AttributesNoLoopEntity attributesNoLoopEntity = new AttributesNoLoopEntity();

attributesNoLoopEntity.setNum(20);

kieSession.insert(attributesNoLoopEntity);

kieSession.fireAllRules();

kieSession.dispose();

}通过控制台可以看到,由于我们没有设置no-loop属性的值,所以发生了死循环。接下来设置no-loop的值为true再次测试则不会发生死循环。5.5 lock-on-active属性lock-on-active这个属性,可以限制当前规则只会被执行一次,包括当前规则的重复执行不是本身触发的。取值类型为Boolean,默认值为false。测试步骤如下:第一步:编写规则文件package rules

import com.ityml.drools.entity.AttributesLockOnActiveEntity

/*

用于测试Drools 属性:lock-on-active

*/

rule "rule_attributes_lock_on_active_1"

no-loop true

when

$attributesLockOnActiveEntity:AttributesLockOnActiveEntity(num > 1)

then

update($attributesLockOnActiveEntity)

System.out.println("规则 rule_attributes_lock_on_active_1 触发");

end

rule "rule_attributes_lock_on_active_2"

no-loop true

lock-on-active true

when

$attributesLockOnActiveEntity:AttributesLockOnActiveEntity(num > 1)

then

update($attributesLockOnActiveEntity)

System.out.println("规则 rule_attributes_lock_on_active_2 触发");

end第二步:编写单元测试@Test

public void test(){

KieSession kieSession = kieBase.newKieSession();

AttributesLockOnActiveEntity attributesLockOnActiveEntity = new AttributesLockOnActiveEntity();

attributesLockOnActiveEntity.setNum(20);

kieSession.insert(attributesLockOnActiveEntity);

kieSession.fireAllRules();

kieSession.dispose();

}no-loop的作用是限制因为modify等更新操作导致规则重复执行,但是有一个限定条件,是当前规则中进行更新导致当前规则重复执行。而不是防止其他规则更新相同的fact对象,导致当前规则更新,lock-on-active可以看作是no-loop的加强版,不仅能限制自己的更新,还能限制别人的更新造成的死循环。5.6 activation-group属性。activation-group属性是指激活分组,取值为String类型。具有相同分组名称的规则只能有一个规则被触发。第一步:编写规则文件package rules

import com.ityml.drools.entity.AttributesActivationGroupEntity

/*

用于测试Drools 属性: activation-group

*/

rule "rule_attributes_activation_group_1"

activation-group "customGroup"

when

$attributesActivationGroupEntity:AttributesActivationGroupEntity(num > 1)

then

System.out.println("规则 rule_attributes_activation_group_1 触发");

end

rule "rule_attributes_activation_group_2"

activation-group "customGroup"

when

$attributesActivationGroupEntity:AttributesActivationGroupEntity(num > 1)

then

System.out.println("规则 rule_attributes_activation_group_2 触发");

end第二步:编写单元测试@Test

public void test(){

KieSession kieSession = kieBase.newKieSession();

AttributesActivationGroupEntity attributesActivationGroupEntity = new AttributesActivationGroupEntity();

attributesActivationGroupEntity.setNum(20);

kieSession.insert(attributesActivationGroupEntity);

kieSession.fireAllRules();

kieSession.dispose();

}通过控制台可以发现,上面的两个规则因为属于同一个分组,所以只有一个触发了。同一个分组中的多个规则如果都能够匹配成功,具体哪一个最终能够被触发可以通过salience属性确定。5.7 agenda-group属性agenda-group属性为议程分组,属于另一种可控的规则执行方式。用户可以通过设置agenda-group来控制规则的执行,只有获取焦点的组中的规则才会被触发。第一步:编写规则文件package rules

import com.ityml.drools.entity.AttributesAgendaGroupEntity

/*

用于测试Drools 属性: agenda-group

*/

rule "rule_attributes_agenda_group_1"

agenda-group "customAgendaGroup1"

when

$attributesAgendaGroupEntity:AttributesAgendaGroupEntity(num > 1)

then

System.out.println("规则 rule_attributes_agenda_group_1 触发");

end

rule "rule_attributes_agenda_group_2"

agenda-group "customAgendaGroup1"

when

$attributesAgendaGroupEntity:AttributesAgendaGroupEntity(num > 1)

then

System.out.println("规则 rule_attributes_agenda_group_2 触发");

end

rule "rule_attributes_activation_group_3"

agenda-group "customAgendaGroup2"

when

$attributesAgendaGroupEntity:AttributesAgendaGroupEntity(num > 1)

then

System.out.println("规则 rule_attributes_activation_group_3 触发");

end

rule "rule_attributes_agenda_group_4"

agenda-group "customAgendaGroup2"

when

$attributesAgendaGroupEntity:AttributesAgendaGroupEntity(num > 1)

then

System.out.println("规则 rule_attributes_agenda_group_4 触发");

end第二步:编写单元测试@Test

public void test(){

KieSession kieSession = kieBase.newKieSession();

AttributesAgendaGroupEntity attributesAgendaGroupEntity = new AttributesAgendaGroupEntity();

attributesAgendaGroupEntity.setNum(20);

kieSession.insert(attributesAgendaGroupEntity);

kieSession.getAgenda().getAgendaGroup("customAgendaGroup2").setFocus();

kieSession.fireAllRules();

kieSession.dispose();

}通过控制台可以看到,只有获取焦点的分组中的规则才会触发。与activation-group不同的是,activation-group定义的分组中只能够有一个规则可以被触发,而agenda-group分组中的多个规则都可以被触发。5.8 auto-focus属性auto-focus属性为自动获取焦点,取值类型为Boolean,默认值为false。一般结合agenda-group属性使用,当一个议程分组未获取焦点时,可以设置auto-focus属性来控制。第一步:编写规则文件package rules

import com.ityml.drools.entity.AttributesAutoFocusEntity

/*

用于测试Drools 属性: auto-focus

*/

rule "rule_attributes_auto_focus_1"

agenda-group "customAgendaGroup1"

when

$attributesAutoFocusEntity:AttributesAutoFocusEntity(num > 1)

then

System.out.println("规则 rule_attributes_auto_focus_1 触发");

end

rule "rule_attributes_auto_focus_2"

agenda-group "customAgendaGroup1"

when

$attributesAutoFocusEntity:AttributesAutoFocusEntity(num > 1)

then

System.out.println("规则 rule_attributes_auto_focus_2 触发");

end

rule "rule_attributes_auto_focus_3"

agenda-group "customAgendaGroup2"

// auto-focus true

when

$attributesAutoFocusEntity:AttributesAutoFocusEntity(num > 1)

then

System.out.println("规则 rule_attributes_auto_focus_3 触发");

end

rule "rule_attributes_auto_focus_4"

agenda-group "customAgendaGroup2"

when

$attributesAutoFocusEntity:AttributesAutoFocusEntity(num > 1)

then

System.out.println("规则 rule_attributes_auto_focus_4 触发");

end第二步:编写单元测试@Test

public void test(){

KieSession kieSession = kieBase.newKieSession();

AttributesAutoFocusEntity attributesAutoFocusEntity = new AttributesAutoFocusEntity();

attributesAutoFocusEntity.setNum(20);

kieSession.insert(attributesAutoFocusEntity);

kieSession.fireAllRules();

kieSession.dispose();

}通过控制台可以看到,设置auto-focus属性为true的规则都触发了。注意:同一个组,只要有个设置auto-focus true 其他的设置不设置都无所谓啦。都会起作用的。5.9 timer属性timer属性可以通过定时器的方式指定规则执行的时间,使用方式有两种:方式一:timer (int: ?)此种方式遵循java.util.Timer对象的使用方式,第一个参数表示几秒后执行,第二个参数表示每隔几秒执行一次,第二个参数为可选。方式二:timer(cron: )此种方式使用标准的unix cron表达式的使用方式来定义规则执行的时间。第一步:编写规则文件package rules

import com.ityml.drools.entity.AttributesTimerEntity

/*

用于测试Drools 属性: timer

*/

rule "rule_attributes_timer_1"

timer(5s 2s)

when

$attributesTimerEntity:AttributesTimerEntity(num > 1)

then

System.out.println("规则 rule_attributes_timer_1 触发");

end

rule "rule_attributes_timer_2"

timer(cron:0/1 * * * * ?)

when

$attributesTimerEntity:AttributesTimerEntity(num > 1)

then

System.out.println("规则 rule_attributes_timer_2 触发");

end第二步:编写单元测试@Test

public void test() throws InterruptedException {

KieSession kieSession = kieBase.newKieSession();

AttributesTimerEntity attributesTimerEntity = new AttributesTimerEntity();

attributesTimerEntity.setNum(20);

kieSession.insert(attributesTimerEntity);

kieSession.fireUntilHalt();

Thread.sleep(10000);

kieSession.halt();

kieSession.dispose();

}注意:如果规则中有用到了timer属性,匹配规则需要调用kieSession.fireUntilHalt();这里涉及一个规则引擎的执行模式和线程问题,关于具体细节,我们后续讨论。5.10 date-effective属性date-effective属性用于指定规则的生效时间,即只有当前系统时间大于等于设置的时间或者日期规则才有可能触发。默认日期格式为:dd-MMM-yyyy。用户也可以自定义日期格式。第一步:编写规则文件package rules

import com.ityml.drools.entity.AttributesDateEffectiveEntity

/*

用于测试Drools 属性: date-effective

*/

rule "rule_attributes_date_effective"

// date-effective "20-七月-2021"

date-effective "2021-02-20"

when

$attributesDateEffectiveEntity:AttributesDateEffectiveEntity(num > 1)

then

System.out.println("规则 rule_attributes_date_effective 触发");

end第二步:编写单元测试@Test

public void test(){

KieSession kieSession = kieBase.newKieSession();

AttributesDateEffectiveEntity attributesDateEffectiveEntity = new AttributesDateEffectiveEntity();

attributesDateEffectiveEntity.setNum(20);

kieSession.insert(attributesDateEffectiveEntity);

kieSession.fireAllRules();

kieSession.dispose();

}注意:需要在VM参数上加上日期格式:-Ddrools.dateformat=yyyy-MM-dd,在生产环境所在规则引擎的JVM设置中,也需要设置此参数,以保证开发和生产的一致性。5.11 date-expires属性date-expires属性用于指定规则的失效时间,即只有当前系统时间小于设置的时间或者日期规则才有可能触发。默认日期格式为:dd-MMM-yyyy。用户也可以自定义日期格式。第一步:编写规则文件/resource/rules/dateexpires.drlpackage rules

import com.ityml.drools.entity.AttributesDateExpiresEntity

/*

用于测试Drools 属性: date-expires

*/

rule "rule_attributes_date_expires"

date-expires "2021-06-20"

when

$attributesDateExpiresEntity:AttributesDateExpiresEntity(num > 1)

then

System.out.println("规则 rule_attributes_date_expires 触发");

end第二步:编写单元测试@Test

public void test(){

KieSession kieSession = kieBase.newKieSession();

AttributesDateExpiresEntity attributesDateExpiresEntity = new AttributesDateExpiresEntity();

attributesDateExpiresEntity.setNum(20);

kieSession.insert(attributesDateExpiresEntity);

kieSession.fireAllRules();

kieSession.dispose();

}注意:需要在VM参数上加上日期格式:-Ddrools.dateformat=yyyy-MM-dd,在生产环境所在规则引擎的JVM设置中,也需要设置此参数,以保证开发和生产的一致性。6. Drools高级语法前面章节我们已经知道了一套完整的规则文件内容构成如下:本章节我们就来学习其中的几个关键字。6.1 global全局变量global关键字用于在规则文件中定义全局变量,它可以让应用程序的对象在规则文件中能够被访问。可以用来为规则文件提供数据或服务。语法结构为:global 对象类型 对象名称在使用global定义的全局变量时有两点需要注意:1、如果对象类型为包装类型时,在一个规则中改变了global的值,那么只针对当前规则有效,对其他规则中的global不会有影响。可以理解为它是当前规则代码中的global副本,规则内部修改不会影响全局的使用。2、如果对象类型为集合类型或JavaBean时,在一个规则中改变了global的值,对java代码和所有规则都有效。下面我们通过代码进行验证:第一步:编写规则文件package rules

import com.ityml.drools.entity.GlobalEntity

/*

用于测试Drools 全局变量 : global

*/

global java.lang.Integer globalCount

global java.util.List globalList

rule "rule_global_1"

when

$globalEntity:GlobalEntity(num > 1)

then

System.out.println("规则 rule_global_1 开始...");

globalCount++ ;

globalList.add("张三");

globalList.add("李四");

System.out.println(globalCount);

System.out.println(globalList);

System.out.println("规则 rule_global_1 结束...");

end

rule "rule_global_2"

when

$globalEntity:GlobalEntity(num > 1)

then

System.out.println("规则 rule_global_2 开始...");

System.out.println(globalCount);

System.out.println(globalList);

System.out.println("规则 rule_global_2 结束...");

end第二步:编写单元测试@Test

public void test(){

KieSession kieSession = kieBase.newKieSession();

GlobalEntity globalEntity = new GlobalEntity();

globalEntity.setNum(20);

ArrayList globalList = new ArrayList<>();

Integer globalCount = 10;

kieSession.setGlobal("globalCount", 10);

kieSession.setGlobal("globalList", globalList);

kieSession.insert(globalEntity);

kieSession.fireAllRules();

kieSession.dispose();

System.out.println("globalCount=" + globalCount);

System.out.println("globalList=" + globalList);

}注意:1-后面的代码中定义了全局变量以后,前面的test都需要加,不然会出错。2-属性当中的 关于时间的属性,如果涉及格式问题,也不要忘记,jvm启动参数添加相关配置6.2 query查询query查询提供了一种查询working memory中符合约束条件的Fact对象的简单方法。它仅包含规则文件中的LHS部分,不用指定“when”和“then”部分并且以end结束。具体语法结构如下:query 查询的名称(可选参数)

LHS

end具体操作步骤:第一步:编写规则文件package rules

import com.ityml.drools.entity.QueryEntity

/*

用于测试Drools 方法: query

*/

//无参查询

query "query_1"

$queryEntity:QueryEntity(age>20)

end

//有参查询

query "query_2"(Integer qAge,String qName)

$queryEntity:QueryEntity(age > qAge && name == qName)

end第二步:编写单元测试@Test

public void test(){

KieSession kieSession = kieBase.newKieSession();

QueryEntity queryEntity1= new QueryEntity();

QueryEntity queryEntity2= new QueryEntity();

QueryEntity queryEntity3= new QueryEntity();

queryEntity1.setName("张三").setAge(10);

queryEntity2.setName("李四").setAge(20);

queryEntity3.setName("王五").setAge(30);

kieSession.insert(queryEntity1);

kieSession.insert(queryEntity2);

kieSession.insert(queryEntity3);

QueryResults results1 = kieSession.getQueryResults("query_1");

QueryResults results2 = kieSession.getQueryResults("query_2", 1, "张三");

for (QueryResultsRow queryResultsRow : results1) {

QueryEntity queryEntity = (QueryEntity) (queryResultsRow.get("$queryEntity"));

System.out.println(queryEntity);

}

for (QueryResultsRow queryResultsRow : results2) {

QueryEntity queryEntity = (QueryEntity) (queryResultsRow.get("$queryEntity"));

System.out.println(queryEntity);

}

kieSession.fireAllRules();

kieSession.dispose();

}6.3 function函数function关键字用于在规则文件中定义函数,就相当于java类中的方法一样。可以在规则体中调用定义的函数。使用函数的好处是可以将业务逻辑集中放置在一个地方,根据需要可以对函数进行修改。函数定义的语法结构如下:function 返回值类型 函数名(可选参数){ //逻辑代码}具体操作步骤:第一步:编写规则文件/resources/rules/function.drlpackage rules

import com.ityml.drools.entity.FunctionEntity

/*

用于测试Drools 方法: function

*/

//定义一个 假发 方法

function Integer add(Integer num){

return num+10;

}

rule "function"

when

$functionEntity:FunctionEntity(num>20)

then

Integer result = add($functionEntity.getNum());

System.out.println(result);

end第二步:编写单元测试@Test

public void test(){

KieSession kieSession = kieBase.newKieSession();

FunctionEntity functionEntity = new FunctionEntity();

functionEntity.setNum(30);

kieSession.insert(functionEntity);

kieSession.fireAllRules();

kieSession.dispose();

}6.4 条件-LHS加强前面我们已经知道了在规则体中的LHS部分是介于when和then之间的部分,主要用于模式匹配,只有匹配结果为true时,才会触发RHS部分的执行。本章节我们会针对LHS部分学习几个新的用法。6.4.1 复合值限制in/not in复合值限制是指超过一种匹配值的限制条件,类似于SQL语句中的in关键字。Drools规则体中的LHS部分可以使用in或者not in进行复合值的匹配。具体语法结构如下:Object(field in (比较值1,比较值2...))举例:package rules

import com.ityml.drools.entity.LhsInEntity

/*

用于测试Drools LHS: in not in

*/

rule "lhs_in"

when

$lhsInEntity:LhsInEntity(name in ("张三","李四","王五"))

then

System.out.println("规则 lhs_in 触发");

end

rule "lhs_not_in"

when

$lhsInEntity:LhsInEntity(name not in ("张三","李四","王五"))

then

System.out.println("规则 lhs_not_in 触发");

end6.4.2 条件元素evaleval用于规则体的LHS部分,并返回一个Boolean类型的值。语法结构如下:eval(表达式)举例:package rules

import com.ityml.drools.entity.LhsEvalEntity

/*

用于测试Drools LHS: in not in

*/

rule "lhs_eval"

when

$lhsInEntity:LhsEvalEntity(age > 10) and eval(2>1)

then

System.out.println("规则 lhs_eval 触发");

end6.4.3 条件元素notnot用于判断Working Memory中是否存在某个Fact对象,如果不存在则返回true,如果存在则返回false。语法结构如下:not Object(可选属性约束)举例:package rules

import com.ityml.drools.entity.LhsNotEntity

/*

用于测试Drools LHS: not

*/

rule "lhs_not"

when

not $lhsNotEntity:LhsNotEntity(age > 10)

then

System.out.println("规则 lhs_not 触发");

end6.4.4 条件元素existsexists的作用与not相反,用于判断Working Memory中是否存在某个Fact对象,如果存在则返回true,不存在则返回false。语法结构如下:exists Object(可选属性约束)举例:package rules

import com.ityml.drools.entity.LhsEvalEntity

/*

用于测试Drools LHS: exists

*/

rule "lhs_exists"

when

exists $lhsInEntity:LhsEvalEntity(age > 10)

then

System.out.println("规则 lhs_eval 触发");

endJava代码:package com.ityml.drools.client;

import com.ityml.drools.DroolsApplicationTests;

import com.ityml.drools.entity.LhsExistsEntity;

import com.ityml.drools.entity.LhsNotEntity;

import org.junit.jupiter.api.Test;

import org.kie.api.KieBase;

import org.kie.api.runtime.KieSession;

import javax.annotation.Resource;

/**

* @author ityml

* @date 2021-06-17 23:46

*/

public class LhsNotTest extends DroolsApplicationTests {

@Resource

public KieBase kieBase;

@Test

public void test(){

KieSession kieSession = kieBase.newKieSession();

LhsNotEntity lhsNotEntity = new LhsNotEntity();

lhsNotEntity.setAge(1);

kieSession.insert(lhsNotEntity);

kieSession.fireAllRules();

kieSession.dispose();

}

}可能有人会有疑问,我们前面在LHS部分进行条件编写时并没有使用exists也可以达到判断Working Memory中是否存在某个符合条件的Fact元素的目的,那么我们使用exists还有什么意义?两者的区别:当向Working Memory中加入多个满足条件的Fact对象时,使用了exists的规则执行一次,不使用exists的规则会执行多次。例如:规则文件(只有规则体):package rules

import com.ityml.drools.entity.LhsExistsEntity

/*

用于测试Drools LHS: exists

*/

rule "lhs_exists_1"

when

exists $lhsExistsEntity:LhsExistsEntity(age > 10)

then

System.out.println("规则 lhs_exists_1 触发");

end

rule "lhs_exists_2"

when

$lhsExistsEntity:LhsExistsEntity(age > 10)

then

System.out.println("规则 lhs_exists_2 触发");

endJava代码:@Test

public void test(){

KieSession kieSession = kieBase.newKieSession();

LhsExistsEntity lhsExistsEntity = new LhsExistsEntity();

lhsExistsEntity.setAge(30);

LhsExistsEntity lhsExistsEntity2 = new LhsExistsEntity();

lhsExistsEntity2.setAge(30);

kieSession.insert(lhsExistsEntity);

kieSession.insert(lhsExistsEntity2);

kieSession.fireAllRules();

kieSession.dispose();

}上面第一个规则只会执行一次,因为Working Memory中存在两个满足条件的Fact对象,第二个规则会执行两次。6.4.5 规则继承规则之间可以使用extends关键字进行规则条件部分的继承,类似于java类之间的继承。例如:@Test

public void test(){

KieSession kieSession = kieBase.newKieSession();

LhsExistsEntity lhsExistsEntity = new LhsExistsEntity();

lhsExistsEntity.setAge(30);

LhsExistsEntity lhsExistsEntity2 = new LhsExistsEntity();

lhsExistsEntity2.setAge(30);

kieSession.insert(lhsExistsEntity);

kieSession.insert(lhsExistsEntity2);

kieSession.fireAllRules();

kieSession.dispose();

}6.5 结果-RHS规则文件的RHS部分的主要作用是通过插入,删除或修改工作内存中的Fact数据,来达到控制规则引擎执行的目的。Drools提供了一些方法可以用来操作工作内存中的数据,操作完成后规则引擎会重新进行相关规则的匹配,原来没有匹配成功的规则在我们修改数据完成后有可能就会匹配成功了。6.5.1 insert方法insert方法的作用是向工作内存中插入数据,并让相关的规则重新匹配。第一步:编写规则文件package rules

import com.ityml.drools.entity.RhsInsertEntity

/*

用于测试Drools RHS: insert

*/

rule "rhs_insert_1"

when

$rhsInsertEntity:RhsInsertEntity(age <= 10)

then

RhsInsertEntity rhsInsertEntity = new RhsInsertEntity();

rhsInsertEntity.setAge(15);

insert(rhsInsertEntity);

System.out.println("规则 rhs_insert_1 触发");

end

rule "rhs_insert_2"

when

$rhsInsertEntity:RhsInsertEntity(age <=20 && age>10)

then

RhsInsertEntity rhsInsertEntity = new RhsInsertEntity();

rhsInsertEntity.setAge(25);

insert(rhsInsertEntity);

System.out.println("规则 rhs_insert_2 触发");

end

rule "rhs_insert_3"

when

$rhsInsertEntity:RhsInsertEntity(age > 20 )

then

System.out.println("规则 rhs_insert_3 触发");

end第二步:编写单元测试public void test(){

KieSession kieSession = kieBase.newKieSession();

RhsInsertEntity rhsInsertEntity = new RhsInsertEntity();

rhsInsertEntity.setAge(5);

kieSession.insert(rhsInsertEntity);

kieSession.fireAllRules();

kieSession.dispose();

}通过控制台输出可以发现,3个规则都触发了,这是因为首先进行规则匹配时只有第一个规则可以匹配成功,但是在第一个规则中向工作内存中插入了一个数据导致重新进行规则匹配,此时第二个规则可以匹配成功。在第二个规则中同样向工作内存中插入了一个数据导致重新进行规则匹配,那么第三个规则就出发了。6.5.2 update方法update方法的作用是更新工作内存中的数据,并让相关的规则重新匹配。 (要避免死循环)第一步:编写规则文件package rules

import com.ityml.drools.entity.RhsUpdateEntity

/*

用于测试Drools RHS: update

*/

rule "rhs_update_1"

when

$rhsUpdateEntity:RhsUpdateEntity(age <= 10)

then

$rhsUpdateEntity.setAge(15);

update($rhsUpdateEntity);

System.out.println("规则 rhs_update_1 触发");

end

rule "rhs_update_2"

when

$rhsUpdateEntity:RhsUpdateEntity(age <=20 && age>10)

then

$rhsUpdateEntity.setAge(25);

update($rhsUpdateEntity);

System.out.println("规则 rhs_update_2 触发");

end

rule "rhs_update_3"

when

$rhsUpdateEntity:RhsUpdateEntity(age > 20 )

then

System.out.println("规则 rhs_update_3 触发");

end第二步:编写单元测试@Test

public void test(){

KieSession kieSession = kieBase.newKieSession();

RhsUpdateEntity rhsUpdateEntity = new RhsUpdateEntity();

rhsUpdateEntity.setAge(5);

kieSession.insert(rhsUpdateEntity);

kieSession.fireAllRules();

kieSession.dispose();

}通过控制台的输出可以看到规则文件中定义的三个规则都触发了。在更新数据时需要注意防止发生死循环。6.5.3 modify方法modify方法的作用跟update一样,是更新工作内存中的数据,并让相关的规则重新匹配。只不过语法略有区别 (要避免死循环)第一步:编写规则文件package rules

import com.ityml.drools.entity.RhsModifyEntity

/*

用于测试Drools RHS: modify

*/

rule "rhs_modify_1"

when

$rhsModifyEntity:RhsModifyEntity(age <= 10)

then

modify($rhsModifyEntity){

setAge(15)

}

System.out.println("规则 rhs_modify_1 触发");

end

rule "rhs_modify_2"

when

$rhsModifyEntity:RhsModifyEntity(age <=20 && age>10)

then

modify($rhsModifyEntity){

setAge(25)

}

System.out.println("规则 rhs_modify_2 触发");

end

rule "rhs_modify_3"

when

$rhsModifyEntity:RhsModifyEntity(age > 20 )

then

System.out.println("规则 rhs_modify_3 触发");

end第二步:编写单元测试@Test

public void test(){

KieSession kieSession = kieBase.newKieSession();

RhsModifyEntity rhsModifyEntity = new RhsModifyEntity();

rhsModifyEntity.setAge(5);

kieSession.insert(rhsModifyEntity);

kieSession.fireAllRules();

kieSession.dispose();

}通过控制台的输出可以看到规则文件中定义的三个规则都触发了。在更新数据时需要注意防止发生死循环。6.5.4 retract/delete方法retract方法的作用是删除工作内存中的数据,并让相关的规则重新匹配。第一步:编写规则文件package rules

import com.ityml.drools.entity.RhsRetractEntity

/*

用于测试Drools RHS: retract

*/

rule "rhs_retract_1"

when

$rhsRetractEntity:RhsRetractEntity(age <= 10)

then

// retract($rhsRetractEntity);

System.out.println("规则 rhs_retract_1 触发");

end

rule "rhs_retract_2"

when

$rhsRetractEntity:RhsRetractEntity(age <= 10)

then

System.out.println("规则 rhs_retract_2 触发");

end第二步:编写单元测试public void test(){

KieSession kieSession = kieBase.newKieSession();

RhsRetractEntity rhsRetractEntity = new RhsRetractEntity();

rhsRetractEntity.setAge(5);

kieSession.insert(rhsRetractEntity);

kieSession.fireAllRules();

kieSession.dispose();

}通过控制台输出可以发现,只有第一个规则触发了,因为在第一个规则中将工作内存中的数据删除了导致第二个规则并没有匹配成功。6.5 RHS加强RHS部分是规则体的重要组成部分,当LHS部分的条件匹配成功后,对应的RHS部分就会触发执行。一般在RHS部分中需要进行业务处理。在RHS部分Drools为我们提供了一个内置对象,名称就是drools。本小节我们来介绍几个drools对象提供的方法。6.5.1 halthalt方法的作用是立即终止后面所有规则的执行。package rules

import com.ityml.drools.entity.RhsHaftEntity

/*

用于测试Drools RHS: haft

*/

rule "rhs_haft_1"

when

$rhsHaftEntity:RhsHaftEntity(age <= 10)

then

drools.halt();

System.out.println("规则 rhs_haft_1 触发");

end

rule "rhs_haft_2"

when

$rhsHaftEntity:RhsHaftEntity(age <= 20)

then

System.out.println("规则 rhs_haft_2 触发");

end6.5.2 getWorkingMemorygetWorkingMemory方法的作用是返回工作内存对象。rule "rhs_get_working_memory_1"

when

$rhsDroolsMethodsEntity:RhsDroolsMethodsEntity(age <= 10)

then

System.out.println(drools.getWorkingMemory());

System.out.println("规则 rhs_get_working_memory_1 触发");

end6.5.3 getRulegetRule方法的作用是返回规则对象。rule "rhs_rule_2"

when

$rhsDroolsMethodsEntity:RhsDroolsMethodsEntity(age <=20)

then

System.out.println(drools.getRule());

System.out.println("规则 rhs_rule_2 触发");

end6.6 规则文件编码规范(重要)我们在进行drl类型的规则文件编写时尽量遵循如下规范:所有的规则文件(.drl)应统一放在一个规定的文件夹中,如:/rules文件夹书写的每个规则应尽量加上注释。注释要清晰明了,言简意赅同一类型的对象尽量放在一个规则文件中,如所有Student类型的对象尽量放在一个规则文件中规则结果部分(RHS)尽量不要有条件语句,如if(...),尽量不要有复杂的逻辑和深层次的嵌套语句每个规则最好都加上salience属性,明确执行顺序Drools默认dialect为"Java",尽量避免使用dialect "mvel"7. WorkBench7.1 WorkBench简介WorkBench是KIE组件中的元素,也称为KIE-WB,是Drools-WB与JBPM-WB的结合体。它是一个可视化的规则编辑器。WorkBench其实就是一个war包。WorkBench经过几次版本迭代,已经不提供tomcat启动的war包,综合考虑,本课程仍然采用 tomcat版本作为演示。环境:apache-tomcat-9.0.29kie-drools-wb-7.6.0.Final-tomcat8 下载地址:Drools - Download说明:准备jar包:需要放到tomcat lib中,否则启动失败具体安装步骤:7.1.1 配置 Tomcat1.修改tomcat-user.xml,添加用户

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"

version="1.0">

此账号密码用于登录WorkBench管理控制台2.修改server.xml

unpackWARs="true" autoDeploy="true">

prefix="localhost_access_log" suffix=".txt"

pattern="%h %l %u %t "%r" %s %b" />

host节点下添加3.复制jar到tomcat根目录的lib下面:kie-tomcat-integration-7.10.0.Final.jar

javax.security.jacc-api-1.5.jar

slf4j-api-1.7.25.jar

4.复制 kie-drools-wb-7.6.0.Final-tomcat8.war 到tomcat webapp下面并修改成kie-web.war7.1.2启动服务器启动tomcat访问http://localhost:8080/kie-web,可以看到WorkBench的登录页面。使用前面创建的kie-web/kie-web123登录登录成功后进入系统首页:7.2WorkBench使用7.2.1创建空间、项目首页中点击 project,创建空间我们创建一个 ityml 的工作空间。点击 Save,保存。点击工作空间当中的 ityml,进入空间点击Add Project添加项目成功后,我们可以看见下图左上角的导航条,可以在空间和project之间切换7.2.2创建数据对象和drl文件切换到pro1项目内,点击 Create New Assert选中数据对象:输入Order,点击确定,成功后跳转如下页面Order相当于我们代码中的实体类,在左侧 Project Explorer视图中,可以看见项目结构接下来添加字段,点击添加字段按钮:ID 位置,输入java bean的字段,标签是备注信息,类型选择对应的字段类型,保存,点击创建,关闭弹窗,点击创建并继续,可以继续创建。点击右上角的保存,至此,一个数据对象我们就创建完成,可以在源代码中查看代码内容。接下来我们创建一个drl文件,创建过程跟创建bean类似,drl文件内容如下package com.ityml.pro1;

rule "rule_1"

when

$order:Order(age > 10)

then

System.out.print("rule run...");

end保存之后,点击导航条回到项目主页7.2.3 设置KieBase+KieSession项目首页点击Settings选择知识库跟会话弹出窗口,输入Kiebase名称即可,我们以kb1为例同理,我们补充完软件包信息,添加只是会话,即kiesession操作完成后,不要忘记保存,此时,我们可在Project Explorer视图中,resource/META-INF/kmodule.xml中看见如下信息

导航回到项目首页,进行编译发布发布成功后,我们可以在maven仓库中看到对应的jar也可以访问:http://localhost:8080/kie-web/maven2/com/ityml/pro1/1.0.0/pro1-1.0.0.jar 验证是否发布成功7.2.4 代码使用@Test

public void test() throws Exception{

//通过此URL可以访问到maven仓库中的jar包

//URL地址构成:http://ip地址:Tomcat端口号/WorkBench工程名/maven2/坐标/版本号/xxx.jar

String url = "http://localhost:8080/kie-web/maven2/com/ityml/pro1/1.0.0/pro1-1.0.0.jar";

KieServices kieServices = KieServices.Factory.get();

UrlResource resource = (UrlResource) kieServices.getResources().newUrlResource(url);

//认证

resource.setUsername("kie-web");

resource.setPassword("kie-web123");

resource.setBasicAuthentication("enabled");

KieRepository repository = kieServices.getRepository();

//通过输入流读取maven仓库中的jar包数据,包装成KieModule模块添加到仓库中

KieModule kieModule = repository.addKieModule(kieServices.getResources().newInputStreamResource(resource.getInputStream()));

KieContainer kieContainer = kieServices.newKieContainer(kieModule.getReleaseId());

KieSession session = kieContainer.newKieSession();

Order order = new Order();

order.setName("张三");

order.setAge(30);

session.insert(order);

session.fireAllRules();

session.dispose();

}我们用URL流的方式,获取jar资源,并构造kiesession对象,即可动态访问workbench中的规则8 其他8.1 有状态session和无状态session无状态session无状态的KIE会话是一个不使用推理来对事实进行反复修改的会话。在无状态的KIE会话中,来自KIE会话先前调用的数据(先前的会话状态)在会话调用之间被丢弃,而在有状态的KIE会话中,这些数据被保留。一个无状态的KIE会话的行为类似于一个函数,因为它产生的结果是由KIE基础的内容和被传入KIE会话以在特定时间点执行的数据决定的。KIE会话对以前传入KIE会话的任何数据都没有记忆。使用方法类似如下代码:@Test

public void testStatelessSession() {

StatelessKieSession statelessKieSession = kieBase.newStatelessKieSession();

List cmds = new ArrayList<>();

KieSessionEntity kieSessionEntity = new KieSessionEntity();

kieSessionEntity.setNum(10);

kieSessionEntity.setValid(false);

cmds.add(CommandFactory.newInsert(kieSessionEntity, "kieSessionEntity"));

statelessKieSession.execute(CommandFactory.newBatchExecution(cmds));

System.out.println(kieSessionEntity);

}简单说来,无状态session执行的时候,不需要调用 fireAllRules(),也不需要执行dispose(),代码执行完execute之后,即销毁所有的数据。使用场景:比如上述的校验num验证数据: 比如计算积分,按揭房贷等路有消息:比如对邮件排序,发送邮件等,行为类的场景有状态session有状态的KIE会话是一个使用推理来对事实进行反复修改的会话。在有状态的KIE会话中,来自KIE会话先前调用的数据(先前的会话状态)在会话调用之间被保留,而在无状态的KIE会话中,这些数据被丢弃了。对比无状态session,有状态session调用fireAllRules()的时候采取匹配规则,就会执行规则匹配,除非遇见dispose()示例:数据模型public class Room {

private String name;

// Getter and setter methods

}

public class Sprinkler {

private Room room;

private boolean on;

// Getter and setter methods

}

public class Fire {

private Room room;

// Getter and setter methods

}

public class Alarm { }规则文件rule "When there is a fire turn on the sprinkler"

when

Fire($room : room)

$sprinkler : Sprinkler(room == $room, on == false)

then

modify($sprinkler) { setOn(true) };

System.out.println("Turn on the sprinkler for room "+$room.getName());

end

rule "Raise the alarm when we have one or more fires"

when

exists Fire()

then

insert( new Alarm() );

System.out.println( "Raise the alarm" );

end

rule "Cancel the alarm when all the fires have gone"

when

not Fire()

$alarm : Alarm()

then

delete( $alarm );

System.out.println( "Cancel the alarm" );

end

rule "Status output when things are ok"

when

not Alarm()

not Sprinkler( on == true )

then

System.out.println( "Everything is ok" );

end代码KieSession ksession = kContainer.newKieSession();

String[] names = new String[]{"kitchen", "bedroom", "office", "livingroom"};

Map name2room = new HashMap();

for( String name: names ){

Room room = new Room( name );

name2room.put( name, room );

ksession.insert( room );

Sprinkler sprinkler = new Sprinkler( room );

ksession.insert( sprinkler );

}

ksession.fireAllRules();输出Console output

> Everything is ok此时还可以继续输入Fire kitchenFire = new Fire( name2room.get( "kitchen" ) );

Fire officeFire = new Fire( name2room.get( "office" ) );

FactHandle kitchenFireHandle = ksession.insert( kitchenFire );

FactHandle officeFireHandle = ksession.insert( officeFire );

ksession.fireAllRules();

Console output

> Raise the alarm

> Turn on the sprinkler for room kitchen

> Turn on the sprinkler for room office继续输入ksession.delete( kitchenFireHandle );

ksession.delete( officeFireHandle );

ksession.fireAllRules();输出Console output

> Cancel the alarm

> Turn off the sprinkler for room office

> Turn off the sprinkler for room kitchen

> Everything is ok总结:最近有一些小伙伴,让我帮忙找一些 面试题 资料,于是我翻遍了收藏的 5T 资料后,汇总整理出来,可以说是程序员面试必备!所有资料都整理到网盘了,欢迎下载!点赞收藏+评论转发+关注我之后私信我,注意回复【000】点击此处链接即可获取更多免费资料!发布于 2022-03-17 20:13Android 应用Java后端技术​赞同 49​​9 条评论​分享​喜欢​收藏​申请

DTools 入门讲:基础入门-Kinco步科

DTools 入门讲:基础入门-Kinco步科

首页

培训视频

HMI

伺服步进

学习资料

HMI

伺服步进

报警查询

PLC

下载中心

案例

培训视频PPT

问答中心

HMI

伺服步进

搜索

登录

注册

首页

培训视频

HMI

伺服步进

学习资料

HMI

伺服步进

报警查询

PLC

下载中心

案例

培训视频PPT

问答中心

HMI

伺服步进

登录

注册

HMI

伺服步进

DTools 入门讲:基础入门

来源:Kinco步科

简介:

Kinco DTools软件教学视频,相关操作文档可在学习资料板块获取,视频讲解PPT可在下载中心板块获取

收藏视频

3599

0

1

分享

目录

1

DTools 入门讲:基础入门

当前播放

2

DTools入门讲:密码保护及恢复出厂

免费

3

DTools入门讲:通讯设置

免费

4

DTools入门讲:基础控件(按钮数值指示灯)

免费

5

DTools 下载安装注意事项

免费

6

DTools USB方式下载上传

免费

7

DTools 串口下载

免费

8

DTools 网口下载

免费

9

DTools U盘下载上传工程

免费

10

DTools .pkgx 文件反编译

免费

11

DTools 串口组态

免费

12

DTools 网口组态

免费

13

DTools 固件更新

免费

14

DTools HMIWare V2.5版本工程升级

免费

15

DTools XY图详解

免费

16

DTools 趋势图

免费

17

DTools 数据报表与数据报表曲线

免费

18

DTools 历史数据显示元件

免费

19

DTools 报警功能(报警和事件)

免费

20

DTools 分期付款(授权)

免费

21

DTools 用户等级设置

免费

22

DTools 用户权限设置

免费

23

DTools RW配方功能

免费

24

DTools 配方区列表

免费

25

DTools 宏指令的应用

免费

26

DTools 宏指令的应用案例

免费

27

DTools 操作日志

免费

28

DTools 排程

免费

29

DTools 项目资料(配方选单)

免费

30

DTools 窗口

免费

31

DTools 数据传输和定时器

免费

32

DTools FTP和PDF

免费

33

DTools 音频与视频播放

免费

34

DTools 二维码元件

免费

35

DTools 扫描枪直连HMI的使用

免费

36

DTools 摄像头应用

免费

37

DTools HDMI全高清输出

免费

38

DTools 时间元件

免费

39

DTools 图形与动画应用

免费

40

DTools 基本图标应用

免费

41

DTools 便利的查看菜单

免费

42

DTools 便利的编辑小功能(元件编辑)

免费

发表

收藏视频

来源:Kinco步科

简介:

Kinco DTools软件教学视频,相关操作文档可在学习资料板块获取,视频讲解PPT可在下载中心板块获取

目录

1

DTools 入门讲:基础入门

当前播放

2

DTools入门讲:密码保护及恢复出厂

免费

3

DTools入门讲:通讯设置

免费

4

DTools入门讲:基础控件(按钮数值指示灯)

免费

5

DTools 下载安装注意事项

免费

6

DTools USB方式下载上传

免费

7

DTools 串口下载

免费

8

DTools 网口下载

免费

9

DTools U盘下载上传工程

免费

10

DTools .pkgx 文件反编译

免费

11

DTools 串口组态

免费

12

DTools 网口组态

免费

13

DTools 固件更新

免费

14

DTools HMIWare V2.5版本工程升级

免费

15

DTools XY图详解

免费

16

DTools 趋势图

免费

17

DTools 数据报表与数据报表曲线

免费

18

DTools 历史数据显示元件

免费

19

DTools 报警功能(报警和事件)

免费

20

DTools 分期付款(授权)

免费

21

DTools 用户等级设置

免费

22

DTools 用户权限设置

免费

23

DTools RW配方功能

免费

24

DTools 配方区列表

免费

25

DTools 宏指令的应用

免费

26

DTools 宏指令的应用案例

免费

27

DTools 操作日志

免费

28

DTools 排程

免费

29

DTools 项目资料(配方选单)

免费

30

DTools 窗口

免费

31

DTools 数据传输和定时器

免费

32

DTools FTP和PDF

免费

33

DTools 音频与视频播放

免费

34

DTools 二维码元件

免费

35

DTools 扫描枪直连HMI的使用

免费

36

DTools 摄像头应用

免费

37

DTools HDMI全高清输出

免费

38

DTools 时间元件

免费

39

DTools 图形与动画应用

免费

40

DTools 基本图标应用

免费

41

DTools 便利的查看菜单

免费

42

DTools 便利的编辑小功能(元件编辑)

免费

添加小步企业微信

关注“bilibili”

关注“视频号”

手机访问

服务热线

400-700-5281

深圳市南山区高新科技园北区朗山一路6号1栋

培训视频

HMI

伺服步进

学习资料

HMI

伺服步进

报警查询

PLC

下载中心

案例

培训视频PPT

问答中心

HMI

伺服步进

© Kinco步科 粤ICP备05082025号 All Right Reserved

网站地图

Dtools - The next generation of Web3 tools

Dtools - The next generation of Web3 tools

Daemon Tools下载-Daemon Tools官方免费下载-Daemon Tools下载2023最新版v11.1.0.2037-华军软件园

Daemon Tools下载-Daemon Tools官方免费下载-Daemon Tools下载2023最新版v11.1.0.2037-华军软件园

找软件用软件,就到华军软件园!

软件发布

热搜词:

360安全卫士

Office365

360浏览器

WPS Office

爱奇艺

华为云市场

腾讯云商店

首页

电脑软件

安卓软件

苹果软件

移动电脑版

AI工具箱

软件专题

教程攻略

装机必备

下载排行

最近更新

所在位置:

首页 — PC软件 — 系统软件 — 虚拟光驱

 — 

Daemon Tools

Daemon Tools  v11.1.0.2037最新版

软件授权:

免费软件

软件大小:

46.67MB

软件评分:

软件类型:

汉化软件

更新时间:

2023-12-27

应用平台:

Win7及以上

软件语言:

简体中文

版       本:

v11.1.0.2037最新版

立即下载

安全下载

使用WindSoul软件管家下载

虚拟光驱口碑排行榜

虚拟光驱精灵

驱动人生

Daemon Tools

免费虚拟光驱(DAEMON Tools Lite)

下载服务协议见页面底部

发布软件/应用

软件介绍

下载地址

相关文章

为您推荐:-

Daemon Tools

驱动类工具

基本简介

虚拟光驱Daemon Tools是一款非常受用户喜爱的虚拟光驱软件。Daemon

Tools软件支持Win9x/win2k、ps、加密光盘,方便用户选择适合自己电脑的镜像。如果您需要制作光盘镜像,华军软件园为您提供Daemon Tools

免费版下载!

相似软件

软件特色

软件地址

驱动人生

性能稳定

查看

虚拟光驱精灵

光驱读盘快

查看

xp虚拟机

自定义参数

查看

WinISO

镜像编辑

查看

虚拟光驱

快速方便

查看

Damon Tools lite虚拟光驱软件特点

      Daemon Tools lite(虚拟光驱)内部集成 SPTD (DAEMON 所必须) 驱动维护程序,支持为用户安装或更新 SPTD 驱动。

      外部集成 SPTD 驱动清理程序 SPTD-Cleaner.exe 支持为用户修复或卸载 SPTD 驱动。

      Daemon Tools lite(虚拟光驱)尽可能完善的模拟了原版安装机制,支持 32 位与 64 位系统。

      即使是从未用过此软件的新手,只要仔细看清弹窗提示继续下去即可成功拥有DAEMON。

Daemon Tools lite虚拟光驱安装步骤

      1、在本站下载Daemon Tools lite(虚拟光驱)安装包,在电脑本地得到一个压缩包,使用360压缩软甲解压后,双击.exe文件进入软件安装界面,选择你的许可证类型“包含广告的免费许可”,“付费个人许可”。

      2、小编选择的是【包含广告的免费许可】,等待加载完毕,出现如下界面,点击【安装】。

      3、选择Daemon Tools lite(虚拟光驱)安装语言,您可以点击语言后的三角图标,在弹出的下拉中找到【简体中文】点击即可,选择完成后点击【下一步】。

      4、选择Daemon Tools lite(虚拟光驱)安装类型,个人许可证,商业许可证,免费许可,您可以根据您的实际需求选择,小编选择的是【免费许可】,选择完成后点击【下一步】。

      5、选择Daemon Tools lite(虚拟光驱)安装组件,取消您不想要的安装组件,将安装组件前的√去掉就可了。选择完成后点击【下一步】。

      6、选择Daemon Tools lite(虚拟光驱)软件的安装位置,您可以点击【安装】,软件会自动安装,或者您可以点击【浏览】在打开的安装位置界面中您可以自行选择软件的安装位置,选择完成后点击【安装】。

      7、Daemon Tools lite(虚拟光驱)安装完成,您可以勾选软件中间位置的运行Daemon Tools lite,然后点击【完成】就可以打开软件了。

Daemon Tools lite虚拟光驱使用说明

      daemon tools lite虚拟光驱怎么用?

      1、在电脑上先下载ISO镜像文件,将镜像文件的扩展名显示,打开我的电脑点击上方的工具在弹出的选项中选择文件夹选项-,打开文件夹选项后点击【查看】选项卡,在高级设置中找到【显示已知文件的拓展名】如下图,点击【确定】。

      2、在电脑右下角找到Daemon Tools图标,点击鼠标右键,在弹出的选项行找到【装载镜像】,选择您要装载镜像的设备。

      3、在打开的选择镜像文件窗口中找到您下载完成的ISO镜像文件,找到后点击【打开】就可以了。

      4、然后打开您的电脑看一下,会多出一个DVD驱动器。

Daemon tools虚拟光驱常见问题

      1、Daemon tools虚拟光驱如何添加光驱盘符?

      虚拟光驱的添加光驱盘符方法步骤:http://www.onlinedown.net/article/10017046.htm

      2、Windows虚拟光驱(Daemon Tools )如何加载多个镜像?

      虚拟光驱加载多个镜像的图文步骤:http://www.onlinedown.net/article/10005088.htm

      3、daemon tools lite虚拟光驱装载镜像怎么用?

      daemon tools lite虚拟光驱使用方法:http://www.onlinedown.net/article/10017047.htm

Daemon tools(虚拟光驱)同类软件推荐

      驱动人生8官方版是一款可安装万能驱动的驱动。驱动人生一站式检测硬盘系统驱动,分别提供32位、64位驱动下载安装,从此解决了驱动丢失、无法安装驱动等问题。并且驱动人生不但提高程序的性能和稳定性,从而会使操作流程更加流畅。

      下载地址:http://www.onlinedown.net/soft/120118.htm

      拟光驱精灵是一套模拟真实光驱的工具软件。有了它,您就再也不会因光盘频繁使用而为光盘磨损、光驱老化烦恼了!使用本软件,您可把常常要用到的数据CD、DVD压缩保存在硬盘中,而且能同时虚拟多个CD驱动器,并让您同时使用。

      下载地址:http://www.onlinedown.net/soft/67013.htm

      UltraISO是一款功能强大而又方便实用的光盘映像文件制作/编辑/格式转换工具。Daemon tools虚拟光驱是一款虚拟的驱动程序,可以帮助用户运行CUE,ISO等格式的镜像文件,您还可以使用Daemon Tools lite可以模拟备份软件,保护您的软件。UltraISO软件可以直接编辑ISO文件,还可以刻录光盘。

      下载地址:http://www.onlinedown.net/soft/27820.htm

Daemon Tools lite(虚拟光驱)更新日志

      — 新增快速安装选项,支持VHD安装VMDK、TrueCrypt文件

      — 支持Windows 10,版本分为 x64、x86

      — 改进易用性,设备性能更完善

      DAEMON Tools Lite 4.47.1.0333

      - 快速安装FLAC格式;

      错误修正:

      - 一些小的修正。

      因版权及厂商要求,华军软件园提供的是Daemon Tools软件的官方下载包。

华军小编推荐:

Daemon Tools是一款非常好用的虚拟光驱软件,为此华军软件园为所有用户提供了其它相关软件的下载途径,相信大家都会喜欢这些软件,驱动人生、Alcohol 120% ,欢迎大家前来下载!

相关专题

DAEMON Tools软件专题

tools是什么意思

DAEMON Tools软件专题

22款

DAEMON Tools作为一款专业的虚拟光驱软件,可以帮助用户将镜像文件制作成光盘。DAEMON Tools提供专业的影响制作工具,及制作、编辑、刻录、装载功能与一体,兼容多种操作系统,满足用户的各类需求。华军软件园DAEMON Tools软件专题为您提供DAEMON Tools系列软件下载,如DAEMON Tools Lite、DAEMON Tools Ultra、DAEMON Tools Pro等。...

DAEMON Tools Lite

更新日期:

2022-10-24

Windows虚拟光驱(Daemon Tools Lite)

更新日期:

2022-10-24

DAEMON Tools

更新日期:

2022-07-19

Daemon Tools(精灵虚拟光驱)

更新日期:

2022-07-20

Daemon Tools Pro

更新日期:

2021-12-31

免费虚拟光驱(DAEMON Tools Lite)

更新日期:

2022-10-24

Daemon Tools

更新日期:

2022-12-07

DAEMON Tools Lite For Mac

更新日期:

2020-09-11

tools是什么意思

6款

tools是什么意思专题,为您提供手机tools是什么意思、itools是什么意思、fca port for oversee suppliers是什么意思等内容。更多tools是什么意思内容,请到华军软件园tools是什么意思专题!...

Windows虚拟光驱(Daemon Tools Lite)

更新日期:

2022-10-24

Daemon Tools

更新日期:

2022-12-07

VMware Tools

更新日期:

2022-04-18

DAEMON Tools Lite

更新日期:

2022-10-24

Daemon Tools(精灵虚拟光驱)

更新日期:

2022-07-20

免费虚拟光驱(DAEMON Tools Lite)

更新日期:

2022-10-24

下载地址

分享软件/应用

若有违法违规、资源包错误等问题向我们

反馈!

使用WindSoul软件管家下载地址:安全,快速

电信安全下载

网通安全下载

移动安全下载

联通安全下载

其他下载地址:

通用网络下载

通用网络下载

部分文件为zip、rar等压缩格式,请下载

360压缩

进行压缩!

相关文章

daemon tools lite虚拟光驱装载镜像怎么用?daemon tools lite虚拟光驱使用方法

DAEMON Tools如何取消添加映像到分类目录?DAEMON Tools取消添加映像到分类目录的方法

DAEMON Tools如何取消发送匿名统计?DAEMON Tools取消发送匿名统计的方法

DAEMON Tools Lite如何设置文件关联?DAEMON Tools Lite设置文件关联的方法

Daemon tools虚拟光驱如何添加光驱盘符?虚拟光驱的添加光驱盘符方法步骤

DAEMON Tools如何检查更新?DAEMON Tools检查更新的方法

DAEMON Tools Lite如何关闭自动装载?DAEMON Tools Lite关闭自动装载的方法

DAEMON Tools lite如何加载IOS文件?DAEMON Tools lite使用加载IOS文件的操作教程

daemon tools lite如何安装游戏?daemon tools lite安装游戏的方法

Daemon Tools lite虚拟光驱如何安装?Daemon Tools lite虚拟光驱安装步骤

网友评论

您的评论需要经过审核才能显示

全部评论

华军网友

Daemon Tools界面设计很容易上手,功能很丰富,本人极力推荐!

有用

华军网友

Daemon Tools超级棒!点一亿个赞!!!

有用

华军网友

Daemon Tools还不错,下载非常快,送你个好评!

有用

友情链接

华军推荐

daemontools

daemontools

xp虚拟机

daemon tools lite

佳能ir2545i打印机驱动

Daemon Tools

CDRoller

DVDFab

DAEMON Tools Lite

免费虚拟光驱(DAEMON Tools Lite)

Alcohol 120%

Daemon Tools(精灵虚拟光驱)

DAEMON Tools

VMware11

魔方虚拟光驱

虚拟光驱(DVDFab Virtual Drive)

Daemon Tools Pro

PowerISO

软媒虚拟光驱

驱动人生

WinISO

虚拟光驱精灵

闪电骑士虚拟光驱

WinArchiver 64位

DAEMON Tools Lite For Mac

xp虚拟机

DAEMON Tools Ultra 5

Virtual CloneDrive

精灵虚拟光驱(Daemon Tools)

VDM虚拟光驱(Virtual Drive Manager)

gBurner(光盘刻录工具)

WinISO

VirtualDVD(虚拟光驱)

Alcohol 120%酒精烧录

Alcohol Portable(虚拟光驱)

虚拟光驱软件(WinArchiver)

AnyBurn(cd/dvd刻录软件)

WinCDEmu(迷你虚拟光驱)

拷贝加密DVD DVDFab HD Decrypter

映像制作工具 Casper ISO Creator

PlexTools Professional XL

虚拟光驱魔术师2007

Virtual CD-ROM Control Panel(虚拟光驱控制面板)

CHKen Virtual Disk虚拟磁盘

虚拟光驱创建管理工具(MakBit Virtual CD/DVD)

虚拟光驱(LZZ Virtual Drive)

软媒虚拟光驱

好压虚拟光驱

虚拟光驱(Daemon Tools Pro)

虚拟光驱(Yale CdRom)

金山模拟光驱

虚拟光驱Yale CdRom

装机必备

360卫士

2345加速浏览器

驱动精灵

爱奇艺

360浏览器

谷歌浏览器

360软件管家

WPS

游戏娱乐

雷电模拟器

手游助手

QQ游戏大厅

影音软件

腾讯视频

酷狗音乐

暴风影音

系统安全

鲁大师

腾讯管家

2345卫士

办公软件

office2016

百度网盘

360压缩

本周最热软件

本周最新软件

1

Daemon Tools(精灵虚拟光驱)

查看

2

驱动人生

查看

3

PowerISO

查看

4

虚拟光驱精灵

查看

5

WinISO

查看

6

Daemon Tools

查看

7

免费虚拟光驱(DAEMON Tools Lite)

查看

8

PowerISO(64bit)

查看

9

CDRoller

查看

10

DAEMON Tools Lite

查看

1

daemon tools lite

查看

2

佳能ir2545i打印机驱动

查看

3

Daemon Tools

查看

4

CDRoller

查看

5

DVDFab

查看

6

DAEMON Tools Lite

查看

7

免费虚拟光驱(DAEMON Tools Lite)

查看

8

Alcohol 120%

查看

9

Daemon Tools(精灵虚拟光驱)

查看

10

DAEMON Tools

查看

更多分类

系统辅助

系统测试

卸载软件

数据恢复

剪贴工具

键盘鼠标

文件转换

磁盘工具

文件管理

文件分割

定时软件

备份软件

字体下载

内存管理

压缩解压

改名软件

系统设置

文本编辑

拼音输入

降温程序

电子阅读

打印工具

DOS 工具

刻录软件

翻译软件

系统优化

五笔输入

虚拟光驱

DLL下载

华军热搜

CCleaner

360压缩

EasyRecovery

pdfFactory Pro

Beyond Compare 文件对比工具

BarTender

冰点还原精灵

福昕PDF编辑器(Foxit PDF Editor)

2345王牌输入法

福昕智慧打印

Overture5

会声会影x7

石大师装机大师

风云恢复大师

金舟格式工厂

FinePrint

百度云管家

软件介绍

下载地址

相关文章

返回顶部

Daemon Tools

立即下载

安全下载

使用WindSoul软件管家下载

商务合作

新闻投稿

关于我们

版权声明

Cookie政策

站点地图

公安部网络违法犯罪举报网站

文明上网提倡书

个人信息保护政策

江苏省网络违法和有害信息举报平台

Copyright © 1997-2024 版权所有:南京星智万合网络科技有限公司

苏ICP备16008348号

苏公网安备 32011202000461号

增值电信业务经营许可证:苏B2-20190284

不良信息举报邮箱:

news@onlinedown.net

本站由华为云提供云计算支持

D-Tools: Software for Electronic Systems Integration Businesses

D-Tools: Software for Electronic Systems Integration Businesses

Skip to content

D-Tools Cloud Login

Help Center

Solutions

Industry

Pricing

Resources

Software

D-Tools Cloud

Bid, track, and manage from any device with 
D-Tools Cloud-based proposal software.

Overview

Product Features

System Integrator

Estimate, design, and install with the #1 AV system integration software.

Overview

Product Features

Product Selection Guide

Which Product is Right For You?

System Integrator Product Tours

D-Tools Cloud Product Tours

Case Studies

Features

Integrated Product Library

System Design

Project Management

Field Service Management

Business Management

Proposals and Sales

Third Party Integrations

Industry

AV

Security

HVAC Controls

Higher Ed

Government

D-Tools Cloud

Discover and compare pricing options for our powerful web-based solution.

Pricing

System Integrator

Explore and compare pricing options for our comprehensive project management software.

Pricing

Explore the ROI Calculator

Support & Implementation

Professional Services Packages

Gold Support

Webinars

D-Tools Cloud New User Training

Learn More

Free System Integrator (SI) Webinars

Learn More

Resources

Sales Management

System design

Operations Management

Industry Insights

News & Events

Tech Terminal

Case Studies

Explore all Resources

Visit our Help Center

Product Tours

System Integrator Product Tours

D-Tools Cloud Product Tours

Solutions

Industry

Pricing

Resources

D-Tools Cloud Login

Help Center

Back

Software

D-Tools Cloud

Bid, track, and manage from any device with 
D-Tools Cloud-based proposal software.

Overview

Product Features

System Integrator

Estimate, design, and install with the #1 AV system integration software.

Overview

Product Features

Product Selection Guide

Which Product is Right For You?

System Integrator Product Tours

D-Tools Cloud Product Tours

Case Studies

Features

Integrated Product Library

System Design

Project Management

Field Service Management

Business Management

Proposals and Sales

Third Party Integrations

Industry

AV

Security

HVAC Controls

Higher Ed

Government

D-Tools Cloud

Discover and compare pricing options for our powerful web-based solution.

Pricing

System Integrator

Explore and compare pricing options for our comprehensive project management software.

Pricing

Explore the ROI Calculator

Support & Implementation

Professional Services Packages

Gold Support

Webinars

D-Tools Cloud New User Training

Learn More

Free System Integrator (SI) Webinars

Learn More

Resources

Sales Management

System design

Operations Management

Industry Insights

News & Events

Tech Terminal

Case Studies

Explore all Resources

Visit our Help Center

Product Tours

System Integrator Product Tours

D-Tools Cloud Product Tours

D-Tools Cloud Solo Plan - Now Available for FREE! ↦ Click Here to Sign Up Today!

Transform Your Business with the #1 Software for Electronic Systems Integrators

Join thousands of AV, security, and technology professionals who use D-Tools to power their business operations to drive sales and boost profitability. 

Trusted By

Automate Critical Business Processes,from Beginning to End

CRM

Stand out from the competition and close more business. Accelerate your sales process and visually manage leads, track their activity, and nurture them along your customer journey. Drive customer engagement, boost sales efficiency, and foster long-lasting relationships.

Learn more

Estimating & Proposals

Enhance your professional image and simplify the sales process by effortlessly crafting polished and personalized proposals. Generate precise quotes featuring dealer-specific pricing, elevating your efficiency and delivering a seamless experience to your clients. Leverage precise estimating capabilities to guarantee accurate project assessments from start to finish.

Learn More

System Design & Documentation

Maximize productivity, ensure accuracy. Detailed engineering drawings and in-app markup tools enable precise system design and visual quoting. Access up-to-date, dealer-specific, product information with detailed specifications, through our Integrated Product Library for highly accurate and detailed documentation.

Learn more

Field Service Management

Deliver your projects on time and on budget. Manage project workflows, from initial design through installation, with real-time updates to change orders. Collaborate with your field team and clients to create, organize, and track projects, and offer service contracts for recurring revenue.

Learn more

Business Management

Reduce costs and increase profits. Optimize payment processing, invoicing, and 3rd party accounting integration for maximum efficiency. Use built-in business intelligence to track operations with customizable KPIs and detailed reports.

Learn more

Click to enlarge

Click to enlarge

Click to enlarge

Click to enlarge

Click to enlarge

Integrated Product Library with Dealer-Specific Pricing

Optimize your proposals and system designs by leveraging our integrated product library, featuring top manufacturer products with dealer-specific pricing. Simplify your catalog management to save time on data entry and help ensure accurate pricing on every project.

Explore Product Library

Our Supplier Partners

Which Software Is Right for You?

D-Tools Cloud

Easy-to-implement SaaS platform

Sales pipeline tracking & management

Intelligent visual quoting

Interactive system design presentations

Efficient product procurement

Streamlined field service management

Learn More

System Integrator

Robust end-to-end on-premise solution

Customized workflow for large projects

Data-driven engineering drawings

Robust business intelligence & reporting

Efficient product & service management

Detailed project documentation

Learn More

Testimonials

Don’t just take our word for it. See what our customers have to say.

View All

With D-Tools software, we decreased time on quote generation by 40% and decreased design drawing time by 60%. Its combined feature set provides a win for us as well as our clients.

Sound Stage

Customer

D-Tools helped us map out the process and signal flow so that when we’re on-site working with the general contractors, electricians, and IT staff, we can be proactive instead of reactive. We want everyone on the same page — from engineer to installer to programmer — so it’s a smooth workflow throughout the process. D-Tools is helping us build efficiencies, and that’s the most important part.

bluum

Customer

Synced dealer pricing for products has helped us stay on top of the ever-changing manufacturer and distributor pricing that was previously eating away at our profits. I’m not sure how we survived without it!

Chris Hudson, Connected Home

Customer

With D-Tools software, we decreased time on quote generation by 40% and decreased design drawing time by 60%. Its combined feature set provides a win for us as well as our clients.

Sound Stage

Customer

Synced dealer pricing for products has helped us stay on top of the ever-changing manufacturer and distributor pricing that was previously eating away at our profits. I’m not sure how we survived without it!

Chris Hudson, Connected Home

Customer

Purpose-Built Software for Real-World Results

Discover how purpose-built software drives success for D-Tools’ customers.

D-Tools Helps Electronic Design Company Take the Minnesota Vikings Training Facility into the Future

Customer Success Stories

D-Tools Cloud Facilitates Transformational Change for NY Integrator

Customer Success Stories

FCC’s $10M Tech Installation Streamlined Thanks to C3EL’s Impressive Project Planning and Offsite Pre-Configuration with D-Tools Software

Customer Success Stories

The D-Tools Difference

Sure, D-Tools software solutions have earned 50+ industry awards (and counting). However, to truly understand the difference D-Tools will make for your business, we invite you to...

Schedule Live Demo

OUR COMPANY

About Us

Awards

Events

Industry Affiliations

Careers

Partners

Contact Us

HEADQUARTERS

1850 Gateway Boulevard,Suite 1060, Concord,CA 94520

Phone: 925-681-2326

Fax: 925-681-2900

EASTERN US OFFICE

2300 Lake Park Dr, SE,Suite 400, Smyrna GA 30080

Phone: 925-681-2326

Fax: 925-681-2900

INDIA OFFICE

306 Fountain Plaza, 4th FloorPanthenon Road, EgmoreChennai 600008

Phone: 91-44-42146859

SUBSCRIBE TO OUR NEWSLETTER

© 2024 All rights reserved. Term of Service Privacy Policy Software License Agreement

Follow us on Facebook

Follow us on Twitter

Follow us on Facebook

A unique plugin decentralized ecosystem - Dtools Whitepaper

ique plugin decentralized ecosystem - Dtools WhitepaperDtools WhitepaperServices & ToolsWhitepaperFAQsConnect WalletOverviewRoad MapMain ModulePlugin EcosystemDapp MarketWorkflowTechnologyDecentralized storageDtools PassGovernanceTeamPartnerAppendixDtools WhitepaperOverviewWelcome to DtoolsDtools (Decentralized Tools) is the next generation of Web3 ALL-IN-ONE tools. It supports all major operating systems, including MacOS, Windows, iOS and Android. Including various functional modules and a unique plugin ecosystem based on decentralized technology. We have built a bridge between Web2 and Web3.Module introductionDtools takes decentralized technology as the core and includes four modules: Assets Management, Dapp Management, Plugin System and Monitor System for every Web3 user.Assets ManagementDtools support connection to various major wallet plugins, including MetaMask, Phantom, etc., and can perform comprehensive asset queries and management on many chains such as Eth, Polygon, BSC, Solana, Avalanche, Fantom, Arweave, etc. The data dimension includes token, NFT and on-chain activity records, etc. It also supports highly customizable portfolio bundles, which can add rich asset portfolios and addresses.Dapps ManagementDtools have collected more than 2000 Dapps of different chains in the Web3 world and are constantly updated and maintained. It's supplemented by clear classification, making it convenient for users to browse, view and collect their favorite and commonly used Dapps. All Dapps support one-click direct access through a high-performance desktop search engine, which solves the problem that traditional browser favorites are challenging to manage.On-chain MonitoringBased on the vast majority of on-chain data released in the Web3 world, we investigated the user experience of participating in the Web3 application ecosystem and thought deeply about it. With the ultra-large-scale data processing technology, the contract unit of token/NFT as the dimension supports users to highly customize the monitoring of key indicators such as the number of positions, prices, TVL and other key indicators on multiple chains. Instant notifications mean users don't need to spend a lot of time every day on projects that they are interested in.Plugin EcosystemBased on our exploration and rethinking of decentralized technology and ecosystems, we have developed a unique plugin system based on decentralized technology. Currently, it supports gas tracker, token batch sender, token approval check, blockscan chat, etc. All plugins and functions can be used with one click, which can significantly improve the efficiency of explorers' work, research, study and entertainment in the Web3 world. And with our subsequent investment in research and development, we will maintain a fixed frequency of plugin updates and fully open the plugin system soon. Developers looking to build Web3 tools are welcome to join us to create more value and share the economic and ecological benefits of Dtools together.Our missionWeb3 is a wonderful new world full of opportunities and challenges. We pay tribute to every explorer who sets foot on this land with courage and faith. Our only mission is to continuously innovate and provide every Web3 explorer with the most efficient, convenient and useful product.Our vision As a member of the Web3 world, we have encountered many difficulties and obstacles on the road from Web2 to Web3. We appreciate the friends and communities who have selflessly helped us along the way, and that makes us understand how important it is to have a leader who drives the darkness away.The original intention of the idea of Dtools was very simple: we hope the latecomers will not have to go through the layers of mountains and obstacles to come to this paradise. We are doing our best to build a beautiful rainbow bridge to Web3 and help every explorer who is not willing to be ordinary to make great strides from the world of Web2 to the door of Web3.Our valuesSimply being a nice person in the world is our only and eternal value. We hope that our work, efforts and creations can be approved and rewarded through our valuable contribution.Road MapQ2.2021The idea of Dtools and the establishment of the team; Product direction and concept born.Q3.2021Development of the main product framework and the asset management module completed; Dapp professional manual review team established.Q4.2021Dtools plugin system development completed.Q1.2022Dtools beta version development completed; Product UI design of iOS and Android versions completed.Q2.2022Dtools beta version released; Global internal beta open recruitment.Q3.2022New version of Dtools released; The beta version of the on-chain monitor system released; 20+ new plugins added to the plugin market.Q4.2022Dtools official version released; Beta versions of iOS and Android released.2023Open third-party plugin development, prepare token economic model, and cooperate with Web3 developers to build a sustainable value technology product ecosystem.Main ModuleModule NameModule FunctionFuture PlanDesktop Search EngineIn the past, when users viewed Dapps websites, they needed to open the browser first, then search in the favorites, or just search directly, but they might encounter fake sites.Through the desktop search engine of Dtools that can provide:1. Shortcut key to wake up, and then search directly.2. Integrate thousands of Dapps and dozens of plugins, and search results respond in milliseconds. All Dapps are manually screened to avoid clicking on fake websites on the browser search results page.3. User-defined keywords to achieve exclusive search engines.Search algorithm optimization, more precisely matches what users want.Search Widget In the world of Web3, gas fee and token price are two common and frequently used data, but the operation for users to view this data is a little cumbersome. Taking token price as an example, users need to open the browser first, then search for the market website from a search engine like google, then search the price of token from the market website.Through the search widget of Dtools that can achieve:1. Integrate common features such as token price, gas fee, and world clock into the search list.2. In the search box, users only need to search for the name of any token, and then they can directly see the price of the token, fluctuations and other data on the search result page; just need to search for chain + gas (such as eth gas), you can directly see the real-time gas price of the chain; just search the name of a city and you will know the current time in that city.We have developed a lot of interesting and practical plugins, but this is far from enough. In addition to our continuous investment in R&D development, we are also building a broader open-plugin ecosystem, which is clearly defined in our roadmap. It is planned that more developers who are willing to build for Web3 will be integrated with a unique and shared economic ecology.On-chain Asset Management Asset management is a very important requirement for Web3 users, because no wallet supports all major chains, nor does it support multi-address asset aggregation management.Dtools implements the following functions:1. Supports asset and NFT query of multiple chains such as Ethereum, Polygon, Solana, etc.2. Supports aggregating multiple wallet addresses into one bundle for management.3. Supports the creation of multiple bundles for portfolio management.1. Support query more on-chain asset.2. Support query transaction history.3. Visually analyze.Plugin EcosystemFor the unique needs of users, we have developed a plugin system.1. At present, dozens of native plugin applications are planned, including all aspects of users' daily needs, from gas price inquiry to token distribution2. The first version has 11 plugins. The detailed description of all the remaining plugins can be viewed in the "Plugin Ecosystem" section1. Continue to develop new plugins as planned.2. Optimize and adjust the existing plugins3. Support plugin rating and comment in plugin market.4. According to the roadmap and plan, support developers to upload custom plugins.Dapp Market Our professional Web3 research team has manually screened thousands of popular Dapps with several months of hard work, and conducted a detailed manual classification including defi, gamefi, nft, browser, etc.1. Continue to add Dapps that are not included in the list.2. Regularly review and delete expired Dapps.Data Monitoring Our data center monitoring of global multi-chain nodes will be officially opened in 2022Q3:1. Connect to opensea, looksrare and other platforms to monitor the owners, floor prices, etc.2. Connect to major exchanges and blockchain browsers to monitor the price of tokens, holders and other data that users are concerned about3. Support user-defined monitoring targets to achieve accurate matching and real-time push 1. More globalized chain data node deployment.2. More advanced customized data subscription dimensions fully satisfy every Web3 user's grasp of the world's information flow.Notification1. We will not push any messages to users unless they are actively turned on.2. If the user has enabled the blockscan chat plugin, when a new message is received, there will be a push message reminder, but don't worry, if you are harassed, you can add the account to the blacklist.3. If the user uses our monitoring system, and the conditions set by the user are met (we have set up the mode of regular push and custom push to meet the various needs of the user), there will be a push message reminder to avoid missing any chance Support for more notification schemes Workflow (planning) Support users to provide efficient and useful functions and combinations, combining all our plugins and Dapps to achieve the most efficient personal workflowAccording to our roadmap planning and design, we will also open the operateflow market in the future to support users to upload their own defined operateflows to the market to share with other users while enjoying the unique Dtools economic ecology.Plugin EcosystemThe plugins of Dtools follow the principle of single responsibility. Every plugin accurately solves the needs of a single scenario, with lightness, speed and accuracy as the core. The plugin ecosystem includes plugins developed by our team and third-party developers. We are committed to building a plugin market that any developer can easily upload. After a strict intelligent security audit and the DAO-based decentralized audit and authentication mechanism we are currently designing, users can use the plugins safely.The following are 11 plugins supported by the current beta version of Dtools. All plugins involving smart contracts, all their information and source codes are fully disclosed, and the contract addresses can be viewed in the [Technology] section.NameSource of DemandFunction DescriptionPlanningToken Approval CheckerDuring the use of Web3, a large number of various Dapps will be connected, and various authorizations will also be involved.But the problem is that the user does not know how to cancel the authorization. Over time, the more contracts authorized, the greater the risk of user funds. 1. Query all contracts, tokens, authorized quantity and risk degree authorized by an address.2. Support users select expired and entrusted authorizations in batches, and then cancel with one click.Optimize smart identification of contract risk.Token Batchsender When users need to send tokens to multiple wallet addresses, they can either manually transfer accounts one by one, or use payment tools.Manual transfers by themselves will encounter two problems: 1. It takes a lot of time to repeat operations, and it is easy to make mistakes2. Gas fees will be charged for each transaction. When the number of addresses is large, a large amount of gas fees will be consumed. 1. Support input address by uploading files, and checking the correctness of input information, effectively preventing input errors.2. All the transactions to be sent by the user are packaged and processed in a unified manner, and only one or several gas fees will be charged (depending on the number of sending addresses, there is an upper limit on the amount of transactions that can be packaged in a single transaction), effectively reducing the gas consumption of users.3. 100% free,No fees except gasSupport more chains and more tokens.Gas TrackerIt is not convenient for users to query gas fees in real time currently.This plugin supports real-time query of gas prices of multiple blockchains, which is convenient for users to choose appropriate gas fees for transactions.Currently supported blockchains include Ethereum, polygon, bnbchain and avalanche, etc.Support real-time gas fee query of more chainsBlockscan ChatThe traditional account-based chat mechanism has the problems of registration trouble and poor compatibility and versatility.1. Wallet-to-wallet instant chat with any Ethereum-compatible address2. Add a blacklist to prevent owners from sending you messages3. Instant notifications, even if you are not in the chat interface, you can also receive message prompts Crypto PriceThe price of tokens changes frequently and fluctuates greatly. It is very meaningful for token holders and users who pay attention to this token to be able to quickly see the real-time price and fluctuation of a certain token. Relying on Dtools, it only takes 1 steps to meet the needs: use the shortcut key to wake up Dtools, then enter the token name, the search result page will automatically display the price of the searched token, fluctuations and other data, and the data will change in real time 1. Query the real-time prices and fluctuations of major currencies such as BTC, ETH, BNB, SOL, USDT, etc.2. Support favorite currencies, and you can also search for the token name from the main search box to obtain real-time data directly.Support more tokens and query of newly listed tokens Chainlist When users access a dapp of a certain network, they often need to connect to its main network to use the function normally.However, the current main wallets, such as MetaMask, only have a small amount of built-in network, which may not include the website the user is viewing. When visiting these websites, many webpages will only prompt the user to connect to the correct network, but will not tell them how1. Dozens of blockchains and their corresponding test chains are assembled, so that users can quickly add the required chain to the wallet.2. After connecting to the wallet, find the network you need to add to the wallet, click "add to wallet", after the wallet is authorized, the plugin will automatically add the selected chain to the wallet.1. Support more networks.2. Support users to select nodes to customize and add.FaucetsWhen users use the testnet, there will be a need to receive test coins through the faucet. However, many of the current faucets are in disrepair and can no longer be obtained. The websites that can be collected will also have problems such as being difficult to find and cumbersome to collect.A collection of faucets that aggregates multiple blockchains, including Ropsten, Kovan, Rinkrby, Solana, etc. All the test coins you need, claim restrictions, and detailed claim steps can be found here 1. Update data in time to remove invalid faucets2. Support more networks and more faucetsSpeed TestThe node speeds of various chains such as ETH are different. Choosing a high-speed node is beneficial to demand scenarios such as panic buying.Support to measure the speed of nodes of major blockchains and view the current block height, which is convenient for users to select suitable nodesThe supported blockchains include Ethereum, BSC, Solana, etc. In addition to the nodes queried by the system by default, it also supports the detection of user-defined nodes NFT transfer Wallets can easily transfer tokens to another address, but few wallets can easily transfer NFT to another address1. After connecting the wallet, the plugin will automatically read the nft of the address2. All NFTs that support 721 and 1155 protocols can transferWorld ClockWeb3 is global and open, focusing on projects in other regions, often involving time and time zone conversions The plugin will read the current location and time of the system, and then automatically match the time of major cities in major time zones Unit ConversionUnlike ordinary currencies, crypto currencies can often support very small units, but for ordinary users, remembering so many decimal places is a very troublesome and error-prone thingSupport free conversion of wei, gwei, eth and other unitsSupport unit conversion for more currenciesThe following are the plugins that Dtools continues to develop:NameFunction Description (planning)Transaction ControllerAccelerate or cancel the corresponding transaction by entering the hash and nonce value of the transaction to be accelerated/cancelledNFT Snapper1. Support input opensea link, RPC address, gas fee for snapping 2. Support input erc721 contract and tokenId and other information to snap up any NFT NFT Calendar1. Aggregate the entire network nft sales information, and display the subsequent nft sales in the form of a calendar2. Display useful information of nft , such as twitter followers, number of discords, mint price of nft, etc. NFT Batchsender1. Support multi-chain NFT and batch sending of 721 and 1115 nft protocols2. Support users upload files to fill in the address and send nft3. Intelligently detect the correctness of the address entered by the user Token SnapperSupport bulk purchase by entering SWAP contracts and corresponding purchase currency information, etc.Audit Contract1. Support custom input contract address and automatically generate detailed smart contract detection report2. Maintain a list of risky contracts that other users have detected and keep it updated in timeAudit NFT1. Support custom input NFT contract/tokenid, automatically generate NFT multi-dimensional scoring report and score, as well as the transaction value fluctuation curve of the NFT in various trading markets2. Support subscribing to the key data of the NFT, and notify when key events are triggered Unclaimed Airdrop Finder1. Enter the address to query the unclaimed airdrop2. Detect in real time whether there is an unclaimed airdrop, and automatically trigger an event reminderMigrate AssetsSupports visual batch operations, one-click transfer / distribution of personal assets to any wallet accountWallet GeneratorSupport batch generation of wallets with multiple chains, and can specify the vanity numberLeveraged Liquidity CalculatorQuick and easy calculation of leveraged mining income Impermanent Loss CalculatorQuickly and easily calculate the impermanent loss in the process of swap providing liquidity IPFS Assistant1. Quickly upload custom files to IPFS2. Provide aggregation gateway to access IPFS filesDapp MarketWeb3 has been developed for many years. As latecomers in the industry, we look at this new world with awe. We know that there are too many unknowns in this world waiting for us to explore, among which there are Dapps that are gushing out. This is a revolutionary application ecosystem. Every well-designed Dapp deserves deep study, but sometimes Dapp is not very easy to find, retrieve and use.Therefore, we have organized a professional Web3 industry research team to select 2000+ Dapps through manual selection, including defi,gamefi, NFT, data, browser, bridge and other types. We will maintain daily, including removing Dapps that fail or have a poor reputation, and following the dynamic traversal of industry information to capture early high-value Dapps, completely freeing every Web3 explorer's time in Dapp search and judgment.WorkflowWorkflow is a special function that we provide for many users willing to explore. Using this function, you can expand the functions of Dtools unlimitedly, and use workflow to complete some repetitive and regular activities to improve your work efficiency.Although we have provided many native plugins and selected 2000+ Dapps, these plugins and Dapps currently exist independently in Dtools, and there may be many internal connections between them. In the absence of workflow, You can only use plugins or Dapps one by one to achieve your needs. Still, with workflow, you can perform many unexpected effects through simple dragging and a little code combination, such as:Through our NFT calendar, get the information of the NFTs that will be released in the future, and then use the NFT audit to check the scores of these NFTs, and then use the Web3 relationships to check the information of the NFT issuer to determine which NFTs are worthwhile to get.The above is just a simple assumption, but we have dozens of plugins and thousands of Dapps, and these plugins and Dapps are still constantly updated and optimized. We believe that there must be users who can think of more fun and more useful workflow than us, which is one of the original intentions of our planning of this function, so that users can continue to explore the boundaries of Web3.When everyone is happy to use Web3 workflow, we will open the workflow market, combined with our token ecology, so that everyone can find useful workflow here, so that users who provide workflow can benefit from it.TechnologyFrom the very beginning, we have established that Dtools is based on 100% decentralized technology as much as possible.One of our goals is to cover the user's complete experience support in Web3 world as much as possible, so multi-chain support is also in our technical preparation scope from the beginning, and now we support:EthereumBNB ChainSolanaPolygonAvalancheFantomArweaveAt the same time, support plans for more chains are already underway, and we expect to add as many as 30+ chains in the next six months.Decentralized storageIn the early design process of Dtools, all the technical teams reached a consensus: to do our best to develop a solution based on complete decentralization. Therefore, Dtools will have the following obvious differences compared with other application tools:First of all, there is no centralized storage server behind Dtools. In the technical architecture of Dtools, we have done our best to remove the centralized storage interface that should exist in all traditional application architectures. Like MetaMask, Dtools doesn't store any of your personal information through any centralized storage server, including your asset addresses, plugin collections, Dapp collections, application settings, etc. All your personal information is encrypted and stored on the local device.Second, the synchronous storage of Dtools adopts a pure chain solution. To solve the problem of data synchronization after users change devices without using a centralized storage server, we have deeply researched IPFS and ARWEAVE. We have done a lot of technical work to perfectly support users to encrypt and store their personalized setting information in the decentralized storage network. All your personalized settings can be completely synchronized with only one wallet signature connection. We guarantee your personal privacy from the root.Dtools PassDtools Pass is an identifier and pass issued by us to every Dtooler. Dtoolers who hold the pass can enjoy unlocking all advanced functions and technical expert support within the validity period of the pass. The pass is issued on the ETH mainnet and executes the ERC721 protocol.After the internal testing period ends, we will release three OG passes with different validity periods in the first round. Then you can mint in our official website: https://dtools.orgGovernanceWe fully recognize DAO's concept of decentralization and co-construction. At this stage, we will not issue any token. Dtools Pass is the unique identifier currently. Anyone holding a pass can participate in community proposals and votes to build this next-generation ecosystem of Web3 tools application.TeamWe are a technical team dedicated to building value products on Web3, consisting of more than 30 desktop application engineers, smart contract engineers, big data engineers, application security engineers, UI designers, UE designers, senior product managers, and industry researchers and independent operation studios.The biggest thing we have in common is our love of Web3, and our dedication to the pursuit of product details to provide users with a warm and comfortable product experience.PartnerDuring the development of Dtools, we have received the support of many partners who firmly believe that we can build such a rainbow bridge connecting web2 and Web3.Appendix1.Blockscan chat is a messaging platform for users to simply and instantly message each other wallet-to-wallet, powered by Log-in With Ethereum.WhitepaperFAQsManualMediumBlogMac(Intel)v0.9.19Mac(M1)v0.9.19Windowsv0.9.19Win(zip)v0.9.19Web & H5v0.9.0© 2022 Dtools, Inc. All rights reser

Programfi, toolfi, gamefi, socialfi and defi - Dtools FAQs

ramfi, toolfi, gamefi, socialfi and defi - Dtools FAQsServices & ToolsWhitepaperFAQsConnect WalletFAQWhat is Dtools?Dtools (Decentralized Tools) is the next generation of Web3 ALL-IN-ONE tools. It supports all major operating systems, including MacOS, Windows, iOS and Android. Including a variety of functional modules and a unique plugin ecosystem based on decentralized technology. We have built a rainbow bridge between Web2 and Web3.What are the plugins?Plugins are the special features we provide. The plugins of Dtools follow the principle of single responsibility, every plugin accurately solves the needs of a single scenario, with lightness, speed and accuracy as the core.Since not everyone needs to use all of these features, every plugin needs to be downloaded to use.What is Dtools Pass?Dtools Pass is an identifier and pass issued by us to every Dtooler. Dtoolers who hold the pass can enjoy unlocking all advanced functions and technical expert support within the validity period of the pass. The pass is issued on the ETH mainnet and executes the ERC721 protocol.What is the difference between Common, Premium and Lifetime Pass?For more details, please check our Pass Page.How do I use Pass?First, you need to download and open Dtools, then click the Dtools logo on the right side of the search box and connect to the wallet. If the wallet you connected to Dtools has the Pass, you can go to the Settings-Pass page to select it.If you have other wallets with the Pass, you can modify the wallet that verifies the Pass directly on the Pass page as well, and then select the Pass. Don't worry, this operation only modifies the wallet on the Pass page, not the wallet connected to Dtools.If I want to add a dapp to the Dtools, is there any portal for submitting dapps?If you need to submit a dapp, please contact us in Discord and we'll manually add it for you.How to use Dtools? Learn More:ManualWhitepaperFAQsManualMediumBlogMac(Intel)v0.9.19Mac(M1)v0.9.19Windowsv0.9.19Win(zip)v0.9.19Web & H5v0.9.0© 2022 Dtools, Inc. All rights reser