commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Tripodi (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SANDBOX-372) Make the org.apache.commons.graph.visit.GraphVisitHandler able to return objects
Date Mon, 30 Jan 2012 13:07:10 GMT

     [ https://issues.apache.org/jira/browse/SANDBOX-372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Simone Tripodi resolved SANDBOX-372.
------------------------------------

    Resolution: Fixed

fixed on trunk, see [r1237632|https://svn.apache.org/viewvc?view=revision&revision=1237632]
                
> Make the org.apache.commons.graph.visit.GraphVisitHandler able to return objects
> --------------------------------------------------------------------------------
>
>                 Key: SANDBOX-372
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-372
>             Project: Commons Sandbox
>          Issue Type: Improvement
>          Components: Graph
>            Reporter: Simone Tripodi
>            Assignee: Simone Tripodi
>
> Graph visit could produce output objects, taking inspiration form DbUtil's [ResultSetHandler|http://commons.apache.org/dbutils/apidocs/org/apache/commons/dbutils/ResultSetHandler.html]
and AsyncHttpClient's [AsyncHandler|http://sonatype.github.com/async-http-client/apidocs/com/ning/http/client/AsyncHandler.html]
it would be possible invoke:
> {code}
> final List<V> visited = visit( inputGraph ).from( startVertex ).applyingDepthFirstSearch(
new MyHandler() );
> {code}
> just adding a callback method in {{GraphVisitHandler}}, something like:
> {code}
> public interface GraphVisitHandler<V extends Vertex, E extends Edge, G extends Graph<V,
E>, O>
> {
>     [...]
>     O onCompleted();
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message