jbil.sequence
Class AtomicCharSymbol

java.lang.Object
  extended by jbil.sequence.CharSymbol
      extended by jbil.sequence.AtomicCharSymbol
All Implemented Interfaces:
AtomicSymbol, Symbol

public class AtomicCharSymbol
extends CharSymbol
implements AtomicSymbol

An atomic char symbol is an atomic symbol associated to a character 'image'. This is the basic kind of symbol that will be used for most sequences.

Author:
Paulo G. S. da Fonseca

Constructor Summary
AtomicCharSymbol(char c)
          Creates an atomic character symbol associated to a given char.
 
Method Summary
 char charValue()
           
 Alphabet getMatches()
           
 boolean isAtomic()
           
 
Methods inherited from class jbil.sequence.CharSymbol
arity, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jbil.sequence.Symbol
arity, toString
 

Constructor Detail

AtomicCharSymbol

public AtomicCharSymbol(char c)
Creates an atomic character symbol associated to a given char.

Parameters:
c - The image of the symbol.
Method Detail

charValue

public char charValue()
Specified by:
charValue in class CharSymbol
Returns:
The character image of the symbol.

getMatches

public Alphabet getMatches()
Specified by:
getMatches in interface Symbol
Returns:
The alphabet of symbols matching this symbol.

isAtomic

public boolean isAtomic()
Specified by:
isAtomic in interface Symbol
Returns:
True if the symbol is atomic, or false, otherwise.