Connect the dots

“Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things.” - Robert Heinlein

导航

HOT: AgentFramework 即将发布

Posted on 2006-06-16 07:51  TOX  阅读(382)  评论(0编辑  收藏  举报
AgentFramework 是基于Sophus 的一款软件开发平台,对以下类型的程序提供极大程度的便利:

1、P2P 技术
2、WebService (注)
3、B\S,C\S
4、分布式计算
5、负载均衡
6、人工智能
7、当然还有更多的领域等待你去发掘。

下面是一段示例代码
  [Activation(
   Mode
=ActivationMode.Time, 
   RepeatMode
=ActivationRepeatMode.Interval, 
   IntervalCount
=3
   IntervalSeconds
=2)]
  
public virtual void TimerMethod(string ok)
  {
   Console.WriteLine(DateTime.Now 
+ ": TimerMethod called");
  }

 也就是说 AgentFramewrok 把 Sophus所需要的配置信息全部从 Attribute 中读取,免去了复杂的配置模块。
上面的这段程序的输出是:



一个Attribute就使这个函数增加了循环功能,而且这只是AgentFramework中最简单的功能 ;)

期待AgentFramework的发布..