1 /*********************************************************************
2 Copyright 2012, Ralph Ronnquist.
4 This file is part of GORITE.
6 GORITE is free software: you can redistribute it and/or modify it
7 under the terms of the Lesser GNU General Public License as published
8 by the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 GORITE is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the Lesser GNU General Public
17 License along with GORITE. If not, see <http://www.gnu.org/licenses/>.
18 **********************************************************************/
20 package com.intendico.gorite.addon;
22 import com.intendico.gorite.*;
23 import com.intendico.gorite.Performer.TodoGroup;
24 import java.util.Vector;
27 * This plan is a {@link TodoGroup} meta goal handler that combines
28 * the "round-robin" with "skip blocked" management functions.
29 * @see TodoGroupRoundRobin
30 * @see TodoGroupSkipBlocked
32 public class TodoGroupParallel extends Goal {
35 * Constructor for providing {@link TodoGroup} management through
36 * the named meta goal.
38 public TodoGroupParallel(String name) {
39 super( name, new Goal [] {
40 new TodoGroupRoundRobin( "round robin" ),
41 new TodoGroupSkipBlocked( "skip blocked" )