Data Access Object that stores a casebase. It contains not only the cases but also the metadata about the case description and the attribute employed as unique case identifier.

Some case bases also uses a Taxonomy as additional domain knowledge. This taxonomy is also stored and accesed using this DAO.

Constructors

Methods

  • Return th enam of the attribute that represents the case id

    Returns string

    The name of the id attribute

  • Return a case according to its id

    Parameters

    • id: string

      The unique id of the case

    Returns null | Object

    The case with this id, or null if the id dose not exist in the casebase

  • Return a textual description of the casebase

    Returns string

    A textual description of this case base

  • Return all the unique case ids for this casebase

    Returns string[]

    A list with all the case ids for this casebase

  • Return the number of cases in the casebase

    Returns number

    The number of cases in the casebase

  • Retrieves a random case based on the provided taxonomy label. It looks for a case with the taxonomy label as value of its taxonomy attribute.

    Parameters

    • label: string

      The taxonomy label to search for

    Returns null | string

    The case id of a random case if the label exists, null otherwise