⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 patterns.py

📁 Java Communicating Agents是一个用于开发网络反应式信息agent的框架
💻 PY
字号:
import javaimport jacommafrom jacomma.icm.type import Requestfrom jacomma.platform.core import MessagePatternclass proto_test( java.lang.Object ):	def __init__( self, len, sym ) :		self.len = len		self.sym = sym	def equals( self, other ):		content = other.getContent()		return other.getSender().equals( Request.commServer ) \			   and java.util.List.isInstance( content ) \			   and content.size() == self.len \			   and self.sym.equals( content.get( 0 ) )def create_proto_pattern( sym, len ):	test = proto_test( len, sym )	return MessagePattern.createPattern( Request.commServer, java.util.List, test )

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -