Logo
Distributed Genetic Programming Framework
print print

File org.sfc.meta.BoundedProperty.java

Here you can find all the information about the file org.sfc.meta.BoundedProperty.java. You may explore it here or download it onto your local disk.
/*
 * Copyright (c) 2006 Thomas Weise
 *
 * E-Mail           : tweise@gmx.de
 * Creation Date    : 2006-05-04 08:45:48
 * Original Filename: org.sfc.meta.BoundedProperty.java
 * Version          : 1.0.1
 * Last modification: 2006-05-28
 *                by: Thomas Weise
 *
 * License          : GNU LESSER GENERAL PUBLIC LICENSE
 *                    Version 2.1, February 1999
 *                    You should have received a copy of this license along
 *                    with this library; if not, write to the Free Software
 *                    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *                    MA 02111-1307, USA or download the license under
 *                    http://www.gnu.org/copyleft/lesser.html.
 *
 * Warranty         : This software is provided "as is" 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.
 */


package org.sfc.meta;


/**
 * <p>
 * This is the base class for all properties with boundaries assigned.</p>
 * <p>
 * <i><b>Warning:</b> The boundaries defined in the sub-classes are
 * enforced. Set operations will be allowed if the boundaries imposed are
 * abode.</i></p>
 *
 * @param <Type> The type of the property.
 *
 * @author Thomas Weise
 */

public abstract class BoundedProperty<Type>  extends Property<Type>
  {
/**
 * The serial version uid.
 */

  private static final long serialVersionUID = 1;
/**
 * Create a new bounded property definition.
 * @param p_name         The id of the property. This should be a short
 *                       english abbreviation of the property. It could be
 *                       used as a key for a resource file, so we can
 *                       support i18n.
 * @param p_group        The property group this property belongs to.
 * @param p_type         The type of the property.
 *                       array length.
 */

  public  BoundedProperty (final String         p_name,
                           final PropertyGroup  p_group,
                           final Class<Type>    p_type)
    {
    super(p_name, p_group, p_type);
    }
  

/**
 * Create a new bounded twin property definition. A twin property is a
 * property that has the same semantical meaning as the other twin but
 * another type. This can happen for example when defining a property whose
 * values are complicated objects. You could define a twin property of the
 * type string to represent only the string representations of that objects
 * if having implemented regarding accessor routines.
 * @param p_twin         The twin property.      
 * @param p_type         The type of the property.
 */

  public  BoundedProperty(final Property<?>      p_twin,
                          final Class<Type>      p_type)
    {
    super(p_twin, p_type);
    }
  
/**
 * Check whether a given value would be a valid value for this property or
 * not. All bounded properties must implement this method.
 * @param p_value   The value to be checked.
 * @return  <code>true</code> if and only if the value is valid for this
 *          property.
 */

  @Override
  public  abstract  boolean   is_valid(final Type p_value);
  }

File Information:

file name:BoundedProperty.java
package:org.sfc.meta
qualified name:org.sfc.meta.BoundedProperty.java
file type:Java Source File
download location:download http://dgpf.sourceforge.net/source/org/sfc/meta/BoundedProperty.java
size:3.322 KB (3402 B)
uploaded: 2015-07-22 04:11:12 GMT+0000
last update: 2006-05-28 13:55:31 GMT+0000
last access: 2018-01-22 00:14:48 GMT+0000

statistics online since 2006-01-02.   RSS Feed
Contact us by sending an email to tweise@gmx.de to receive further information, to report errors, or to join our project.
All content on this site (http://dgpf.sourceforge.net/) is LGPL-licensed.
http://dgpf.sourceforge.net/scripts/source/source.php last modified at 2015-07-22 04:10:53 GMT+0000 served at 2018-01-22 00:14:49 GMT+0000.
Valid CSS Valid XHTML 1.1
Valid RSS SourceForge.net Logo