PluginInterface pi = core.getPluginManager().getPluginInterfaceByClass( MagnetPlugin.class );
if ( pi != null ){
magnet_plugin = (MagnetPlugin)pi.getPlugin();
}else{
Debug.out( "Failed to resolve magnet plugin" );
}
Debug.outNoStack( "ExternalStimulus debug" );
addListener(
new ExternalStimulusListener()
{
public boolean
receive(
String name, Map values )
{
System.out.println( "ExternalStimulus: " + name );
System.out.println(" " + (values == null ? -1 : values.size())
+ " Values: " + values);
return( name.equals("ExternalStimulus.test"));
}
});