ElemFactory
edu.jas.structure

Interface ElemFactory<C extends Element<C>>

    • Method Detail

      • generators

        List<C> generators()
        Get a list of the generating elements.
        Returns:
        list of generators for the algebraic structure.
      • isFinite

        boolean isFinite()
        Is this structure finite or infinite.
        Returns:
        true if this structure is finite, else false.
      • fromInteger

        C fromInteger(long a)
        Get the Element for a.
        Parameters:
        a - long
        Returns:
        element corresponding to a.
      • fromInteger

        C fromInteger(BigInteger a)
        Get the Element for a.
        Parameters:
        a - java.math.BigInteger.
        Returns:
        element corresponding to a.
      • random

        C random(int n)
        Generate a random Element with size less equal to n.
        Parameters:
        n -
        Returns:
        a random element.
      • random

        C random(int n,       Random random)
        Generate a random Element with size less equal to n.
        Parameters:
        n -
        random - is a source for random bits.
        Returns:
        a random element.
      • copy

        C copy(C c)
        Create a copy of Element c.
        Parameters:
        c -
        Returns:
        a copy of c.
      • parse

        C parse(String s)
        Parse from String.
        Parameters:
        s - String.
        Returns:
        a Element corresponding to s.
      • parse

        C parse(Reader r)
        Parse from Reader.
        Parameters:
        r - Reader.
        Returns:
        the next Element found on r.
      • toScript

        String toScript()
        Get a scripting compatible string representation.
        Returns:
        script compatible representation for this ElemFactory.

SCaVis 1.8 © jWork.org