nenok
Class LocalKB

java.lang.Object
  extended by nenok.Knowledgebase
      extended by nenok.LocalKB
All Implemented Interfaces:
Serializable

public class LocalKB
extends Knowledgebase

Knowledgebase subclass for local valuations.

Version:
$LastChangedRevision: 550 $
$LastChangedDate: 2008-03-26 14:14:27 +0100 (Mi, 26 Mrz 2008) $
Author:
Marc Pouly
See Also:
Serialized Form

Constructor Summary
protected LocalKB(Valuation[] vals, String name)
          Constructor:
 
Method Summary
 Domain getDomain()
           
 Class getType()
           
 Valuation[] getValuations()
           
 int size()
           
 Labeled[] toArray()
           
 
Methods inherited from class nenok.Knowledgebase
create, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalKB

protected LocalKB(Valuation[] vals,
                  String name)
Constructor:

Method Detail

getValuations

public Valuation[] getValuations()
Specified by:
getValuations in class Knowledgebase
Returns:
The set of valuations that belong to this knowledgebase.
See Also:
Knowledgebase.getValuations()

toArray

public Labeled[] toArray()
Specified by:
toArray in class Knowledgebase
Returns:
The content of this knowledgebase as an array of transmissibles.
See Also:
Knowledgebase.toArray()

getDomain

public Domain getDomain()
Specified by:
getDomain in class Knowledgebase
Returns:
The total domain of this knowledgebase.
See Also:
Knowledgebase.getDomain()

getType

public Class getType()
Specified by:
getType in class Knowledgebase
Returns:
The type of valuations that is contained in this knowledgebase.
See Also:
Knowledgebase.getType()

size

public int size()
Specified by:
size in class Knowledgebase
Returns:
The size of this knowledgebase.
See Also:
Knowledgebase.size()