image=element.jLoadImage(element.jGetSourcePath()+"icon.png");
// Load from 'FCL' file
FIS fis =null;
try
{
if (textVar.getValue().length()==0)
{
String fileName = element.jGetSourcePath()+"fuzzy.fcl";
fis = FIS.load(fileName,false);
textVar.setValue(fis.toStringFCL());
}else
{
fis = FIS.createFromString(textVar.getValue(),false);
}
} catch(Exception ex)
{
element.jException(" There are Errors in the FLC! : "+ex);
return;
}
if( fis == null )
{ // Error while loading?
//System.err.println("Error);
return;
}
// Show ruleset
fuzzyRuleSet = fis.getFuzzyRuleSet();
Iterator item=fuzzyRuleSet.variablesIterator();