|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectclassifierLibrary.SymbolSet
classifierLibrary.Language
Library classifierLibrary, Class Language
Copyright by Klaus Hufschlag 2004,2005,2006
This file is part of the Generic Classifier Library. The Generic Classifier Library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The Generic Classifier Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with the Generic Classifier Library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Field Summary | |
Relation |
hierarchy
|
Constructor Summary | |
Language(java.lang.String name)
Constructor |
|
Language(java.lang.String name,
java.lang.String[] symbolNames)
Constructor, creates an instance containing elements following a list of names. |
Method Summary | |
void |
add(Symbol s,
Symbol parent)
Adds a Symbol to a set, as a subordinate to a parent. |
void |
addMultiSymbols(java.lang.String[] names,
Symbol parent)
Adds Symbols following a list of names to the instance. |
boolean |
checkRel(Symbol parent,
Symbol child)
Checks wether the an element given as parent is really Funktion prüft, ob das als superordinate to the symbol given as child. |
java.lang.Object |
clone()
|
void |
debug_out()
Method for debugging-purposes. |
java.util.ArrayList |
getChildren(Symbol s)
Returns all child elements of a given Symbol as defined in this Language. |
boolean |
hasWildcards()
Checks wheter the language contains symbols that are superordinates to other symbols also contained in the language |
void |
remove()
Removes all Symbols from the instance. |
void |
remove(Symbol s)
Removes a Symbol from the set. |
Methods inherited from class classifierLibrary.SymbolSet |
add, add, addMultiSymbols, asCollection, contains, contains, contains, getDefault, getName, getSize, iterator, powerSet, randomSymbol, remove, setDefault, setDefault, setName, symbolByName |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Relation hierarchy
Constructor Detail |
public Language(java.lang.String name)
name
- Name of Language to be created.public Language(java.lang.String name, java.lang.String[] symbolNames)
name
- Name of Language to be createdsymbolNames
- List of names of Symbols to be includedMethod Detail |
public java.lang.Object clone()
clone
in class SymbolSet
public void add(Symbol s, Symbol parent)
s
- Element to be addedparent
- Parent element.public void addMultiSymbols(java.lang.String[] names, Symbol parent)
names
- parent
- public void remove(Symbol s)
SymbolSet
remove
in class SymbolSet
s
- Symbol to be removedpublic void remove()
SymbolSet
remove
in class SymbolSet
public boolean checkRel(Symbol parent, Symbol child)
parent
- child
-
public void debug_out()
SymbolSet
debug_out
in class SymbolSet
public boolean hasWildcards()
public java.util.ArrayList getChildren(Symbol s)
s
- Symbol serving as parent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |