*/
public static ConstVariableModelAnalysis getAnalysis(NamedObj object)
throws IllegalActionException {
if (object.toplevel() instanceof CompositeActor) {
CompositeActor toplevel = (CompositeActor) object.toplevel();
Manager manager = toplevel.getManager();
ConstVariableModelAnalysis analysis = (ConstVariableModelAnalysis) manager
.getAnalysis("ConstVariableModelAnalysis");
if (analysis == null) {
analysis = new ConstVariableModelAnalysis(toplevel);
manager.addAnalysis("ConstVariableModelAnalysis", analysis);
}
return analysis;
} else {
return new ConstVariableModelAnalysis();