gov.llnl.lc.chaos
public class Genders extends Object
Constructor Summary | |
---|---|
Genders()
Creates a Genders object, loading the default genders database | |
Genders(String filename)
Creates a Genders object, loading the specified genders database |
Method Summary | |
---|---|
void | cleanup()
Cleans up allocated memory. |
String[] | getattr()
Returns all the attributes of the node you are running on
|
String[] | getattr(String node)
Returns all the attributes of the specified node
|
String | getattrval(String attr)
Returns the value of the specified attribute on the current
node you are running on
|
String | getattrval(String node, String attr)
Returns the value of the specified attribute on the specified
node. |
String[] | getattr_all()
Returns all of the attributes in the genders database
|
int | getmaxattrs()
Returns maximum number of attributes of any one node parsed in
the genders database
|
String | getnodename()
Returns the current node you are on, in shortened hostname
format.
|
String[] | getnodes()
Returns all the nodes in the genders database
|
String[] | getnodes(String attr)
Returns all the nodes with the specified attribute
|
String[] | getnodes(String attr, String val)
Returns all the nodes with the specified attribute and value
|
int | getnumattrs()
Returns number of attributes parsed in the genders database
|
int | getnumnodes()
Returns number of nodes parsed in the genders database
|
boolean | isattr(String attr)
Tests if the specified attribute exists in the genders database
|
boolean | isattrval(String attr, String val)
Tests if the specified value exists in the genders database
|
boolean | isnode(String node)
Tests if the specified node exists in the genders database
|
String[] | query(String query)
Returns nodes specified via the specified query. |
boolean | testattr(String attr)
Tests if the current node has the specified attribute
|
boolean | testattr(String node, String attr)
Tests if the specified node has the specified attribute
|
boolean | testattrval(String attr, String val)
Tests if the current node has the specified attribute and value.
|
boolean | testattrval(String node, String attr, String val)
Tests if the specified node has the specified attribute and value.
|
boolean | testquery(String query)
Test if the current node meets the conditions of the specified query.
|
boolean | testquery(String node, String query)
Test if the specified node meets the conditions of the specified query.
|
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error
Throws: GendersException on error