com.planet_ink.coffee_mud.Libraries.interfaces
Interface ProtocolLibrary.MCPPackage

All Known Implementing Classes:
MCPMooSimpleEditPackage, MCPNegotiatePackage
Enclosing interface:
ProtocolLibrary

public static interface ProtocolLibrary.MCPPackage

Interface allowing java or javascript plugins to the MCP protocol


Method Summary
 void executePackage(Session session, java.lang.String command, java.util.Map<java.lang.String,float[]> clientSupported, java.util.Map<java.lang.String,java.lang.String> variables)
          Execute the package
 float maxVersion()
          Returns the maximum version supported here.
 float minVersion()
          Returns the minimum version supported here.
 java.lang.String packageName()
          Return the name of the overall package
 

Method Detail

packageName

java.lang.String packageName()
Return the name of the overall package

Returns:
the name of the overall package

minVersion

float minVersion()
Returns the minimum version supported here.

Returns:
the minimum version supported here.

maxVersion

float maxVersion()
Returns the maximum version supported here.

Returns:
the maximum version supported here.

executePackage

void executePackage(Session session,
                    java.lang.String command,
                    java.util.Map<java.lang.String,float[]> clientSupported,
                    java.util.Map<java.lang.String,java.lang.String> variables)
Execute the package

Parameters:
session - the session for which the package is being executed
command - the actual command being executed by this package
clientSupported - map of client packages supported followed by min-maxes
variables - key/value pairs for this package