コード例 #1
0
    public WorkingMemoryReteAssertAction(MarshallerReaderContext context, Action _action) {
      Assert _assert = _action.getAssert();
      this.factHandle = context.handles.get(_assert.getHandleId());
      this.removeLogical = _assert.getRemoveLogical();
      this.updateEqualsMap = _assert.getUpdateEqualsMap();

      if (_assert.hasTuple()) {
        String pkgName = _assert.getOriginPkgName();
        String ruleName = _assert.getOriginRuleName();
        Package pkg = context.ruleBase.getPackage(pkgName);
        this.ruleOrigin = pkg.getRule(ruleName);
        this.leftTuple =
            context
                .filter
                .getTuplesCache()
                .get(PersisterHelper.createActivationKey(pkgName, ruleName, _assert.getTuple()));
      }
    }
コード例 #2
0
 public WorkingMemoryReteExpireAction(MarshallerReaderContext context, Action _action) {
   this.factHandle = context.handles.get(_action.getExpire().getHandleId());
   this.node =
       (ObjectTypeNode) context.sinks.get(Integer.valueOf(_action.getExpire().getNodeId()));
 }