adams.flow.core
Class TwitterUtils

java.lang.Object
  extended by adams.flow.core.TwitterUtils

public class TwitterUtils
extends Object

Helper class for twitter-flow stuff.

Version:
$Revision: 4584 $
Author:
fracpete (fracpete at waikato dot ac dot nz)

Constructor Summary
TwitterUtils()
           
 
Method Summary
static twitter4j.Twitter getTwitterConnection(AbstractActor actor)
          Returns the twitter connection object.
protected static TwitterConnection getTwitterConnectionActor(AbstractActor actor)
          Returns the closest TwitterConnection actor, if available.
static twitter4j.TwitterStream getTwitterStreamConnection(AbstractActor actor)
          Returns the twitter stream connection object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwitterUtils

public TwitterUtils()
Method Detail

getTwitterConnectionActor

protected static TwitterConnection getTwitterConnectionActor(AbstractActor actor)
Returns the closest TwitterConnection actor, if available.

Parameters:
actor - the actor start the search from (towards the root)
Returns:
the TwitterConnection actor, or null if none found

getTwitterConnection

public static twitter4j.Twitter getTwitterConnection(AbstractActor actor)
Returns the twitter connection object.

Parameters:
actor - the actor to start the search from
Returns:
the connection, default connection object if no TwitterConnection actor found

getTwitterStreamConnection

public static twitter4j.TwitterStream getTwitterStreamConnection(AbstractActor actor)
Returns the twitter stream connection object.

Returns:
the stream connection, null if no TwitterConnection actor found


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.