//
//  MPT_SVMPluginBase.m
//  AUCoderDemo
//
//  Created by Andrew Salamon on 3/11/08.
//  Copyright 2008 Machine Perception Laboratory, University of California San Diego.. All rights reserved.
//

#import "MPT_SVMPluginBase.h"

@implementation MPT_SVMPluginBase
- (NSString *)pluginID
{
//	NSString *ident = [super pluginID];
	NSString *ident = [[self bundle] objectForInfoDictionaryKey:(NSString *)kCFBundleIdentifierKey];

	if( [ident length] > 0 )
		return ident;
	return @"edu.ucsd.mplab.plugins.UnknownSVMPlugin";
}

- (NSString *)localizedName
{
	return NSLocalizedStringFromTableInBundle(@"SVM Plugin Localized Name", nil, [self bundle], @"");
}

- (NSString *)internalName
{
	NSString *intName = [[self bundle] objectForInfoDictionaryKey:@"InternalName"];
	if( [intName length] > 0 )
		return intName;
	
	return @"UnknownInternalName";
}

- (NSString *)step
{
	return MPT_PluginStep_SVM;
}

- (NSString *)weightsDirectory
{
	return [[[self bundle] resourcePath] stringByAppendingPathComponent:@"Weights"];
}
@end
