/* * This file or a portion of this file is licensed under the terms of * the Globus Toolkit Public License, found in file GTPL, or at * http://www.globus.org/toolkit/download/license.html. This notice must * appear in redistributions of this file, with or without modification. * * Redistributions of this Software, with or without modification, must * reproduce the GTPL in: (1) the Software, or (2) the Documentation or * some other similar material which is provided with the Software (if * any). * * Copyright 1999-2004 University of Chicago and The University of * Southern California. All rights reserved. */ package edu.isi.pegasus.planner.invocation; /** * This interface defines a common base for all File elements in an invocation * record that carry a descriptor in their values. It exists primarily for * grouping purposes and for easier access for the database manager. * * @author Jens-S. Vöckler * @author Yong Zhao * @version $Revision$ */ public interface HasDescriptor { /** * Accessor: Obtains the descriptor of the file handle * @return the descriptor number, or -1 for none. * * @see #setDescriptor(int) */ public int getDescriptor(); /** * Accessor: Sets the descriptor number of a file object. * @param descriptor is the new descriptor to store. * @see #getDescriptor() */ public void setDescriptor( int descriptor ); }