Class Genders

java.lang.Object
gov.llnl.lc.chaos.Genders

public class Genders extends Object
Java JNI extensions wrapper around libgenders C library. Most library functions behave similarly to C api functions with minor exceptions documented below.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a Genders object, loading the default genders database
    Genders(String filename)
    Creates a Genders object, loading the specified genders database
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cleans up allocated memory.
    Returns all the attributes of the node you are running on
    Returns all the attributes of the specified node
    Returns all of the attributes in the genders database
    Returns the value of the specified attribute on the current node you are running on
    getattrval(String node, String attr)
    Returns the value of the specified attribute on the specified node.
    int
    Returns maximum number of attributes of any one node parsed in the genders database
    Returns the current node you are on, in shortened hostname format.
    Returns all the nodes in the genders database
    Returns all the nodes with the specified attribute
    getnodes(String attr, String val)
    Returns all the nodes with the specified attribute and value
    int
    Returns number of attributes parsed in the genders database
    int
    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
    query(String query)
    Returns nodes specified via the specified query.
    boolean
    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
    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
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait