/* * MicroJIAC - A Lightweight Agent Framework * This file is part of MicroJIAC Base-Implementation. * * Copyright (c) 2007-2012 DAI-Labor, Technische Universität Berlin * * This library includes software developed at DAI-Labor, Technische * Universität Berlin (http://www.dai-labor.de) * * This library is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library. If not, see <http://www.gnu.org/licenses/>. */ /* * $Id$ */ package de.jiac.micro.core; import com.github.libxjava.lang.IClassLoader; /** * @author Marcel Patzlaff * @version $Revision$ */ public interface IScope { String NODE_SCOPE_CLASS= "de.jiac.micro.core.scope.NodeScope"; byte SIG_TERMINATE= 0; byte SIG_INITIALISE= 1; byte SIG_PAUSE= 2; byte SIG_START= 3; byte SIG_RESUME= 4; void setup(IClassLoader classLoader, String configurationClass, IScopeStateChangeListener listener); void signal(byte signal); IContainer getContainerReference(); interface IScopeStateChangeListener { void onSetup(IScope scope); void onPause(IScope scope); void onStart(IScope scope); void onTerminate(IScope scope); } }