Package ca.grimoire.jnoise.config

Examples of ca.grimoire.jnoise.config.BuilderException


   *           if the element is not a ModuleBuilder.
   */
  public void addChild (Element child) throws BuilderException {
    assert (child != null);
    if (!(child instanceof ModuleBuilder))
      throw new BuilderException ("Source element must be a module.");
    if (source != null)
      throw new BuilderException ("Cache element can only have one source.");

    source = (ModuleBuilder) child;
  }
View Full Code Here


   * @see #setSeed(int)
   * @see ModuleBuilder#createModule()
   */
  public Integer createModule () throws BuilderException {
    if (!seedSet)
      throw new BuilderException ("No seed for integer module.");

    return new Integer (seed);
  }
View Full Code Here

TOP

Related Classes of ca.grimoire.jnoise.config.BuilderException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.