1 /* 2 Copyright (C) 2007 Grid Systems, S.A. 3 4 This library is free software; you can redistribute it and/or 5 modify it under the terms of the GNU Lesser General Public 6 License as published by the Free Software Foundation; either 7 version 2.1 of the License, or (at your option) any later version. 8 9 This library is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 Lesser General Public License for more details. 13 14 You should have received a copy of the GNU Lesser General Public 15 License along with this library; if not, write to the Free Software 16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 */ 18 package nextgrid.api.pom; 19 20 /** 21 * A Service is a concrete process. 22 * <p> 23 * A Service represents a local or remote process instance. It contains 24 * a "grounding", which contains the specifities of the process logic and 25 * how to invoke it. 26 * <p> 27 * Using OO terms, the Service grounding represents the process "instance", 28 * while the Service itself represents the "type" of the service. 29 * 30 * @author Rodrigo Ruiz 31 */ 32 public interface Service extends Process { 33 /** 34 * Gets the grounding associated to this service. 35 * 36 * @return The service grounding 37 */ 38 Grounding getGrounding(); 39 40 /** 41 * Sets the grounding associated to this service. 42 * 43 * @param g The grounding to set 44 */ 45 void setGrounding(Grounding g); 46 }