cmds.add( new KnowledgeContextResolveFromContextCommand( new InsertObjectCommand( new Person( "darth",
97 ) ),
"kbuilder",
"kbase",
"ksession", null ) );
cmds.add( new KnowledgeContextResolveFromContextCommand( new FireAllRulesCommand(),
"kbuilder",
"kbase",
"ksession", null ) );
steps.add( new StepImpl( path,
cmds,
2000 ) );
cmds = new ArrayList<Command>();
cmds.add( new KnowledgeContextResolveFromContextCommand( new InsertObjectCommand( new Person( "yoda",
98 ) ),
"kbuilder",
"kbase",
"ksession", null ) );
cmds.add( new KnowledgeContextResolveFromContextCommand( new FireAllRulesCommand(),
"kbuilder",
"kbase",
"ksession", null ) );
steps.add( new StepImpl( path,
cmds,
4000 ) );
path.setSteps( steps );
simulation.getPaths().put( "path1",
path );
path = new PathImpl( simulation,
"path2" );
steps = new ArrayList<Step>();
cmds = new ArrayList<Command>();
cmds.add( new KnowledgeContextResolveFromContextCommand( new InsertObjectCommand( new Person( "bobba",
77 ) ),
"kbuilder",
"kbase",
"ksession", null ) );
cmds.add( new KnowledgeContextResolveFromContextCommand( new FireAllRulesCommand(),
"kbuilder",
"kbase",
"ksession", null ) );
steps.add( new StepImpl( path,
cmds,
1500 ) );
cmds = new ArrayList<Command>();
cmds.add( new KnowledgeContextResolveFromContextCommand( new InsertObjectCommand( new Person( "luke",
30 ) ),
"kbuilder",
"kbase",
"ksession", null ) );
cmds.add( new KnowledgeContextResolveFromContextCommand( new FireAllRulesCommand(),
"kbuilder",
"kbase",
"ksession", null ) );
steps.add( new StepImpl( path,
cmds,
2200 ) );
cmds = new ArrayList<Command>();
cmds.add( new KnowledgeContextResolveFromContextCommand( new InsertObjectCommand( new Person( "ben",
150 ) ),
"kbuilder",
"kbase",
"ksession", null ) );
cmds.add( new KnowledgeContextResolveFromContextCommand( new FireAllRulesCommand(),
"kbuilder",
"kbase",
"ksession", null ) );
steps.add( new StepImpl( path,
cmds,