Examples of Functor


Examples of com.hp.hpl.jena.reasoner.rulesys.Functor

        assertEquals( makeFunctor( "f", node( "x" ) ), s.subst( bindings ) );
        }

    private Node makeFunctor( String f, Node... args )
        {
        Functor func = new Functor( f, Arrays.asList( args ) );
        return Node.createUncachedLiteral( func, "", FunctorDatatype.theFunctorDatatype );
        }
View Full Code Here

Examples of com.hp.hpl.jena.reasoner.rulesys.Functor

            {
            @Override public Node subst( Node[] b )
                {
                List<Node> mappedArgs = new ArrayList<Node>();
                for (YNode arg: args) mappedArgs.add( subst( arg, b ) );
                Functor functor = new Functor( f, mappedArgs );
                return Node.createUncachedLiteral( functor, "", FunctorDatatype.theFunctorDatatype );
                }

            private Node subst( YNode arg, Node[] b )
                {
View Full Code Here

Examples of com.hp.jena.rules.retelike.impl.scratch.Functor

    private static Node functor( String template )
        {
        StringTokenizer st = new StringTokenizer( template, " ()" );
        List<Node> terms = new ArrayList<Node>();
        while (st.hasMoreTokens()) terms.add( node( st.nextToken() ) );
        return new Functor( terms );
        }
View Full Code Here

Examples of com.hp.jena.rules.retelike.impl.scratch.Functor

        @Override public Node subst( ExecContext c, Bindings<Node, Node> b )
            {
            List<Node> resultTerms = new ArrayList<Node>();
            for (NodeTerm t: terms) resultTerms.add( t.subst( c, b ) );
            return new Functor( resultTerms );
            }
View Full Code Here

Examples of org.apache.jorphan.reflect.Functor

    public SummaryReport() {
        super();
        model = new ObjectTableModel(COLUMNS,
                Calculator.class,// All rows have this class
                new Functor[] {
                    new Functor("getLabel"),              //$NON-NLS-1$
                    new Functor("getCount"),              //$NON-NLS-1$
                    new Functor("getMeanAsNumber"),       //$NON-NLS-1$
                    new Functor("getMin"),                //$NON-NLS-1$
                    new Functor("getMax"),                //$NON-NLS-1$
                    new Functor("getStandardDeviation")//$NON-NLS-1$
                    new Functor("getErrorPercentage"),    //$NON-NLS-1$
                    new Functor("getRate"),               //$NON-NLS-1$
                    new Functor("getKBPerSecond"),        //$NON-NLS-1$
                    new Functor("getAvgPageBytes"),       //$NON-NLS-1$
                },
                new Functor[] { null, null, null, null, null, null, null, null , null, null },
                new Class[] { String.class, Long.class, Long.class, Long.class, Long.class,
                              String.class, String.class, String.class, String.class, String.class });
        clearData();
View Full Code Here

Examples of org.apache.jorphan.reflect.Functor

    public StatVisualizer() {
        super();
        model = new ObjectTableModel(COLUMNS,
                SamplingStatCalculator.class,
                new Functor[] {
                    new Functor("getLabel"),   //$NON-NLS-1$
                    new Functor("getCount")//$NON-NLS-1$
                    new Functor("getMeanAsNumber"),   //$NON-NLS-1$
                    new Functor("getMedian")//$NON-NLS-1$
                    new Functor("getPercentPoint"//$NON-NLS-1$
                            new Object[] { new Float(.900) }),
                    new Functor("getMin")//$NON-NLS-1$
                    new Functor("getMax"),   //$NON-NLS-1$
                    new Functor("getErrorPercentage"),   //$NON-NLS-1$
                    new Functor("getRate")//$NON-NLS-1$
                    new Functor("getKBPerSecond")   //$NON-NLS-1$
                },
                new Functor[] { null, null, null, null, null, null, null, null, null, null },
                new Class[] { String.class, Long.class, Long.class, Long.class, Long.class,
                              Long.class, Long.class, String.class, String.class, String.class });
        clearData();
View Full Code Here

Examples of org.apache.jorphan.reflect.Functor

     * Initialize the table model used for the arguments table.
     */
    private void initializeTableModel() {
        tableModel = new ObjectTableModel(new String[] { COLUMN_NAMES[0], COLUMN_NAMES[1], COLUMN_NAMES[2] },
                LDAPArgument.class,
                new Functor[] { new Functor("getName"), new Functor("getValue"), new Functor("getOpcode") },
                new Functor[] { new Functor("setName"), new Functor("setValue"), new Functor("setOpcode") },
                new Class[] { String.class, String.class, String.class });
    }
View Full Code Here

Examples of org.apache.jorphan.reflect.Functor

        table.revalidate();
    }
    private void initializeTableModel() {
        tableModel = new ObjectTableModel(new String[] { COLUMN_NAMES_0, COLUMN_NAMES_1 },
                new Functor[] {
                new Functor(Map.Entry.class, "getKey"), // $NON-NLS-1$
                new Functor(Map.Entry.class, "getValue") }// $NON-NLS-1$
                new Functor[] {
                null, //new Functor("setName"), // $NON-NLS-1$
                new Functor(Map.Entry.class,"setValue", new Class[] { Object.class }) // $NON-NLS-1$
            },
                new Class[] { String.class, String.class });
    }
View Full Code Here

Examples of org.apache.jorphan.reflect.Functor

    public TableVisualizer() {
        super();
        model = new ObjectTableModel(COLUMNS,
                Sample.class,         // The object used for each row
                new Functor[] {
                new Functor("getCount"), // $NON-NLS-1$
                new Functor("getStartTimeFormatted"// $NON-NLS-1$
                        new Object[]{format}),
                new Functor("getThreadName"), // $NON-NLS-1$
                new Functor("getLabel"), // $NON-NLS-1$
                new Functor("getData"), // $NON-NLS-1$
                new SampleSuccessFunctor("isSuccess"), // $NON-NLS-1$
                new Functor("getBytes") }, // $NON-NLS-1$
                new Functor[] { null, null, null, null, null, null, null },
                new Class[] {
                Long.class, String.class, String.class, String.class, Long.class, ImageIcon.class, Integer.class });
        init();
    }
View Full Code Here

Examples of org.apache.jorphan.reflect.Functor

    protected void initializeTableModel() {
        tableModel = new ObjectTableModel(new String[] {
                ArgumentsPanel.COLUMN_RESOURCE_NAMES_0, ArgumentsPanel.COLUMN_RESOURCE_NAMES_1, ENCODE_OR_NOT, INCLUDE_EQUALS },
                HTTPArgument.class,
                new Functor[] {
                new Functor("getName"), //$NON-NLS-1$
                new Functor("getValue"), //$NON-NLS-1$
                new Functor("isAlwaysEncoded"), //$NON-NLS-1$
                new Functor("isUseEquals") }, //$NON-NLS-1$
                new Functor[] {
                new Functor("setName"), //$NON-NLS-1$
                new Functor("setValue"), //$NON-NLS-1$
                new Functor("setAlwaysEncoded"), //$NON-NLS-1$
                new Functor("setUseEquals") }, //$NON-NLS-1$
                new Class[] {String.class, String.class, Boolean.class, Boolean.class });
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.