logger.debug("Graph type is: " + t_graphType);
logger.debug("Input file is: " + t_graphInputFile);
if(t_graphType.toLowerCase().equals("fhg"))
{
DefaultArffFeedbackGenerator gen = new DefaultArffFeedbackGenerator();
ArrayList<Feedback> feedbacks = (ArrayList<Feedback>) gen.generateHardcoded(t_graphInputFile);
FeedbackHistoryGraph fhg = new FeedbackHistoryGraph(new FeedbackHistoryEdgeFactory());
fhg.addFeedbacks(feedbacks, false);
m_storage.put(t_graphName, fhg);
}
else if(t_graphType.toLowerCase().equals("rg"))
{
ReputationGraphCreator gen = new ReputationGraphCreator();
ReputationGraph rg = gen.createGraph(t_graphInputFile);
m_storage.put(t_graphName, rg);
}
else if(t_graphType.toLowerCase().equals("tg"))
{
TrustGraphCreator gen = new TrustGraphCreator();
TrustGraph tg = gen.createGraph(t_graphInputFile);
m_storage.put(t_graphName, tg);
}
else
{
throw new Exception("Unknown graphType.");