nz.ac.waikato.mcennis.rat.graph.model
Class ModelShell

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.graph.model.ModelShell
All Implemented Interfaces:
Model
Direct Known Subclasses:
ActorCrossValidationScheduler, ActorDistanceMatrix, AggregateActorToGraph, AggregateByLinkProperty, AggregateGraphToGraph, AggregateLinks, AggregateLinkToGraph, AggregateOnActor, AggregateOnGraph, AssociativeMining, BasicDisplayGraph, BasicPath, BasicPathSet, BasicProperty, BasicScheduler, BasicUser, BasicUserLink, BicomponentClusterer, BuildClassifierPerActor, BuildClassifierSingleAttribute, ClassifyPerActor, ClassifySingleAttribute, Clique, ColoredByPropertyGraph, CombineProperty, CrawlLastFM, CrawlLiveJournal, CrossValidationByActor, CrossValidationByGraph, CrossValidationByLinks, DBActor, DBLink, DegreeGraphProperties, DegreePrestige, DerbyGraph, Difference, DirectedTriplesHistogram, DisplayAll, EnumerateMaximalCliques, FileReader, FileReader2Pass, FindStronglyConnectedComponents, FindStronglyConnectedComponentsCore, FindWeaklyConnectedComponents, FromGraphToActor, GeodesicPaths, GeodesicProperties, GetArtistTags, GraphCrossValidationScheduler, GraphSimilarityByProperty, HalfLife, HierarchyByCooccurance, HITSPrestige, IdentifyBridges, Item2Item, KendallTau, LastFMTagFileReader, LinkBetweeness, LinkCrossValidationScheduler, LoadBibliographyAndClass, LoadBibliographyXML, MeanErrorEvaluation, MemGraph, NormanGirvanEdgeBetweenessClustering, NullGraph, OptimizedPathBase, OutputBibliographyXML, OutputBridgesByCluster, OutputDifference, PageRankPrestige, PearsonCorrelation, PrecisionRecallFMeasure, PrincipalComponentsAnalysis, PropertyToLink, RankingProperties, ReadAudioFiles, ReadLastFMProfileFile, ReadMemGraphXMLFile, ROCAreaEvaluation, ScalableHitsPrestige, ScalablePageRankPrestige, SimilarityByLink, SimilarityByProperty, TraditionalEdgeBetweenessClustering, TrimEdgeUsers, UndirectedTriplesHistogram, User2User, UserIDList, UserList, WekaClassifierClusterer, WekaProbablisticClusterer

public class ModelShell
extends java.lang.Object
implements Model

Shell class providing basic MVC support to models. Models must define what the enums for each type of change and manually fire the change method, but this class handles all other bookkeeping.


Field Summary
protected  java.util.LinkedList<Listener> listener
           
 
Constructor Summary
ModelShell()
          Creates a new instance of ModelShell
 
Method Summary
 void addListener(Listener l)
          Add a listener to this model
protected  void fireChange(int type, int argument)
          notifies all listeners of changes of the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

protected java.util.LinkedList<Listener> listener
Constructor Detail

ModelShell

public ModelShell()
Creates a new instance of ModelShell

Method Detail

fireChange

protected void fireChange(int type,
                          int argument)
notifies all listeners of changes of the given type.

Parameters:
type - kind of change that has occured, defined by each subclass.

addListener

public void addListener(Listener l)
Add a listener to this model

Specified by:
addListener in interface Model
Parameters:
l - object that wants to listens to changes

Get Relational Analysis Toolkit at SourceForge.net. Fast, secure and Free Open Source software downloads