gov.sandia.cognition.framework
Class DefaultCogxelFactory

java.lang.Object
  extended by gov.sandia.cognition.framework.DefaultCogxelFactory
All Implemented Interfaces:
CogxelFactory, Serializable

public class DefaultCogxelFactory
extends Object
implements CogxelFactory, Serializable

This class implements a CogxelFactory that returns the default type of DefaultCogxel.

Since:
1.0
Author:
Justin Basilico
See Also:
Serialized Form

Field Summary
static DefaultCogxelFactory INSTANCE
          An instance of the factory since it has no internal state.
 
Constructor Summary
DefaultCogxelFactory()
          Creates a new instance of DefaultCogxelFactory.
 
Method Summary
 Cogxel createCogxel(SemanticIdentifier identifier)
          Creates a new Cogxel for the given CogxelFactory from the given SemanticIdentifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DefaultCogxelFactory INSTANCE
An instance of the factory since it has no internal state.

Constructor Detail

DefaultCogxelFactory

public DefaultCogxelFactory()
Creates a new instance of DefaultCogxelFactory.

Method Detail

createCogxel

public Cogxel createCogxel(SemanticIdentifier identifier)
Creates a new Cogxel for the given CogxelFactory from the given SemanticIdentifier. If this factory can create a Cogxel from the given SemanticLabel, then a new Cogxel with that label is created. If the factory cannot create a Cogxel for the given SemanticIdentifier, then null is returned.

Specified by:
createCogxel in interface CogxelFactory
Parameters:
identifier - The SemanticIdentifier of the new Cogxel
Returns:
A new Cogxel for the given model from the given identifier, if the factory can create a Cogxel from the given identifier. If it cannot, null is returned.