gov.sandia.cognition.statistics.distribution
Class DefaultDataDistribution.DefaultFactory<DataType>

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.statistics.distribution.DefaultDataDistribution.DefaultFactory<DataType>
Type Parameters:
DataType - The type of data for the factory.
All Implemented Interfaces:
Factory<DefaultDataDistribution<DataType>>, CloneableSerializable, Serializable, Cloneable
Enclosing class:
DefaultDataDistribution<KeyType>

public static class DefaultDataDistribution.DefaultFactory<DataType>
extends AbstractCloneableSerializable
implements Factory<DefaultDataDistribution<DataType>>

A factory for DefaultDataDistribution objects using some given initial capacity for them.

See Also:
Serialized Form

Field Summary
protected  int initialDomainCapacity
          The initial domain capacity.
 
Constructor Summary
DefaultDataDistribution.DefaultFactory()
          Creates a new DefaultFactory with a default initial domain capacity.
DefaultDataDistribution.DefaultFactory(int initialDomainCapacity)
          Creates a new DefaultFactory with a given initial domain capacity.
 
Method Summary
 DefaultDataDistribution<DataType> create()
          Creates a new instance of an object.
 int getInitialDomainCapacity()
          Gets the initial domain capacity.
 void setInitialDomainCapacity(int initialDomainCapacity)
          Sets the initial domain capacity.
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialDomainCapacity

protected int initialDomainCapacity
The initial domain capacity.

Constructor Detail

DefaultDataDistribution.DefaultFactory

public DefaultDataDistribution.DefaultFactory()
Creates a new DefaultFactory with a default initial domain capacity.


DefaultDataDistribution.DefaultFactory

public DefaultDataDistribution.DefaultFactory(int initialDomainCapacity)
Creates a new DefaultFactory with a given initial domain capacity.

Parameters:
initialDomainCapacity - The initial capacity for the domain. Must be positive.
Method Detail

create

public DefaultDataDistribution<DataType> create()
Description copied from interface: Factory
Creates a new instance of an object.

Specified by:
create in interface Factory<DefaultDataDistribution<DataType>>
Returns:
A newly created object.

getInitialDomainCapacity

public int getInitialDomainCapacity()
Gets the initial domain capacity.

Returns:
The initial domain capacity. Must be positive.

setInitialDomainCapacity

public void setInitialDomainCapacity(int initialDomainCapacity)
Sets the initial domain capacity.

Parameters:
initialDomainCapacity - The initial domain capacity. Must be positive.