Gephi Toolkit Javadoc

org.gephi.ranking
Class RankingEventImpl

java.lang.Object
  extended by org.gephi.ranking.RankingEventImpl
All Implemented Interfaces:
RankingEvent

public class RankingEventImpl
extends java.lang.Object
implements RankingEvent

Implementation of the RankingEvent interface.

Author:
Mathieu Bastian

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.gephi.ranking.api.RankingEvent
RankingEvent.EventType
 
Constructor Summary
RankingEventImpl(RankingEvent.EventType eventType, RankingModel source)
           
RankingEventImpl(RankingEvent.EventType eventType, RankingModel source, Ranking ranking, Transformer transformer)
           
 
Method Summary
 RankingEvent.EventType getEventType()
          Returns the type of event.
 Ranking getRanking()
          Returns the ranking associated to the event, or null.
 RankingModel getSource()
          Returns the ranking model that generated the event.
 Transformer getTransformer()
          Returns the transformer associated to the event, or null.
 boolean is(RankingEvent.EventType... type)
          Returns true if this event is one of these in parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RankingEventImpl

public RankingEventImpl(RankingEvent.EventType eventType,
                        RankingModel source,
                        Ranking ranking,
                        Transformer transformer)

RankingEventImpl

public RankingEventImpl(RankingEvent.EventType eventType,
                        RankingModel source)
Method Detail

getEventType

public RankingEvent.EventType getEventType()
Description copied from interface: RankingEvent
Returns the type of event.

Specified by:
getEventType in interface RankingEvent
Returns:
the type of this event

getSource

public RankingModel getSource()
Description copied from interface: RankingEvent
Returns the ranking model that generated the event.

Specified by:
getSource in interface RankingEvent
Returns:
the source of the event

getRanking

public Ranking getRanking()
Description copied from interface: RankingEvent
Returns the ranking associated to the event, or null.

Specified by:
getRanking in interface RankingEvent
Returns:
the ranking associated to the event or null

getTransformer

public Transformer getTransformer()
Description copied from interface: RankingEvent
Returns the transformer associated to the event, or null.

Specified by:
getTransformer in interface RankingEvent
Returns:
the ranking associated to the event or null

is

public boolean is(RankingEvent.EventType... type)
Description copied from interface: RankingEvent
Returns true if this event is one of these in parameters.

Specified by:
is in interface RankingEvent
Parameters:
type - the event types that are to be compared with this event
Returns:
true if this event is type, false otherwise

Gephi Toolkit Javadoc