Beispiel #1
0
 /**
  * Creates a {@link Layer} to hold algorithmic components and returns it.
  *
  * @param name the String identifier for the specified {@link Layer}
  * @param p the {@link Parameters} to use for the specified {@link Layer}
  * @return
  */
 @SuppressWarnings("rawtypes")
 public static Layer<?> createLayer(String name, Parameters p) {
   Network.checkName(name);
   return new Layer(name, null, p);
 }
Beispiel #2
0
  /**
   * Creates and returns a child {@link Region} of this {@code Network}
   *
   * @param name The String identifier for the specified {@link Region}
   * @return
   */
  public static Region createRegion(String name) {
    Network.checkName(name);

    Region r = new Region(name, null);
    return r;
  }