/* * Copyright 2012 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.drools.simulation.fluent.simulation; import org.drools.simulation.fluent.SimulationFluentBuilder; import org.drools.simulation.fluent.session.KieSessionSimulationFluent; import org.drools.simulation.fluent.test.TestableFluent; import org.kie.api.builder.ReleaseId; import org.kie.api.command.Command; import org.kie.internal.fluent.FluentRoot; import org.kie.internal.simulation.Simulation; public interface SimulationFluent extends FluentRoot, TestableFluent<SimulationFluent>, SimulationFluentBuilder<SimulationFluent> { SimulationFluent newPath(String id); SimulationFluent getPath(String id); SimulationFluent addCommand(Command<?> command); String getActiveKieSessionId(); KieSessionSimulationFluent newKieSession(ReleaseId releaseId, String id); KieSessionSimulationFluent getKieSession(); KieSessionSimulationFluent getKieSession(String id); /** * Gets the Simulation * @return never null */ Simulation getSimulation(); /** * Run the Simulation with startTimeMillis now. */ void runSimulation(); /** * Run the Simulation. * @param startTimeMillis never null */ void runSimulation(long startTimeMillis); }