@Override
protected void doVisit(NetworkNode node,
Stack<NetworkNode> nodeStack,
StatefulKnowledgeSessionInfo info) {
AccumulateNode an = (AccumulateNode) node;
DefaultNodeInfo ni = (DefaultNodeInfo) info.getNodeInfo( node );
final AccumulateMemory memory = (AccumulateMemory) info.getSession().getNodeMemory( an );
ni.setMemoryEnabled( true );
if( an.isObjectMemoryEnabled() ) {
ni.setFactMemorySize( memory.betaMemory.getRightTupleMemory().size() );
}
if( an.isLeftTupleMemoryEnabled() ) {
ni.setTupleMemorySize( memory.betaMemory.getLeftTupleMemory().size() );
ni.setCreatedFactHandles( memory.betaMemory.getCreatedHandles().size() );
}
}