From: Tommy J. <tom...@ho...> - 2004-03-26 10:22:32
|
Hi, I am trying to make a simple AModel model. I have used the ExampleOpenTopicMap code and tried to extend this. I have implemented the ModelProvider inteface into this, and added the two getModel methods. But I don not manage to get the model. I have made one of the method like this: public AModel getModel(AMMember arg0, String arg1, AbstractionContext arg2) throws UnsupportedAMMemberClassException, AbstractorInstantiationException { ModelProvider modelProvider = panckouckeContext.getModelProvider(); //Assuming you have an AMMember and the connection to the model-provider. String abstractorClassname = "org.tm4j.panckoucke.impl.abstraction.compact.CompactAbstractor"; AModel model = modelProvider.getModel(arg0, abstractorClassname,null); System.out.println(model); //renderer.renderModel(model); return model; } I have managed to run the panckouckeNotifies(Notification notification) sucsessefully but how do I get a model and can render it? Regards Tommy Johannessen _________________________________________________________________ MSN Messenger http://www.msn.no/messenger Den korteste veien mellom deg og dine venner |