Class DefaultNodeInfo

    • Constructor Detail

      • DefaultNodeInfo

        public DefaultNodeInfo​(NetworkNode node)
    • Method Detail

      • assign

        public void assign​(RuleImpl rule)
      • getRules

        public Set<RuleImpl> getRules()
        Description copied from interface: NodeInfo
        Returns the set of rules this node belongs to
        Specified by:
        getRules in interface NodeInfo
        Returns:
      • getId

        public int getId()
        Description copied from interface: NodeInfo
        Returns this node ID
        Specified by:
        getId in interface NodeInfo
        Returns:
      • getTupleMemorySize

        public long getTupleMemorySize()
        Description copied from interface: NodeInfo
        Returns the number of tuples in the tuple memory
        Specified by:
        getTupleMemorySize in interface NodeInfo
        Returns:
      • setTupleMemorySize

        public void setTupleMemorySize​(long leftMemorySize)
      • getFactMemorySize

        public long getFactMemorySize()
        Description copied from interface: NodeInfo
        Returns the number of facts in the fact memory
        Specified by:
        getFactMemorySize in interface NodeInfo
        Returns:
      • setFactMemorySize

        public void setFactMemorySize​(long rightMemorySize)
      • getCreatedFactHandles

        public long getCreatedFactHandles()
        Description copied from interface: NodeInfo
        Returns the number of infered fact handles created in this node
        Specified by:
        getCreatedFactHandles in interface NodeInfo
        Returns:
      • setCreatedFactHandles

        public void setCreatedFactHandles​(long createdFactHandles)
      • getActionQueueSize

        public long getActionQueueSize()
      • setActionQueueSize

        public void setActionQueueSize​(long size)
      • isMemoryEnabled

        public boolean isMemoryEnabled()
        Description copied from interface: NodeInfo
        Returns true if memory is enabled for this node
        Specified by:
        isMemoryEnabled in interface NodeInfo
        Returns:
      • setMemoryEnabled

        public void setMemoryEnabled​(boolean memoryEnabled)