context.arch.interpreter
Class IGroup2URL

java.lang.Object
  |
  +--context.arch.BaseObject
        |
        +--context.arch.interpreter.Interpreter
              |
              +--context.arch.interpreter.IGroup2URL

public class IGroup2URL
extends Interpreter

This class is an interpreter that converts groups to URLs. Another component (app/widget/interpreter) sends an interpret command to it with a group name, and this class returns the corresponding URL.

See Also:
Interpreter

Field Summary
static java.lang.String CLASSNAME
          Name of interpreter
static java.lang.String CRBURL
          String for CRB
static java.lang.String FCEURL
          String for FCE URL
static java.lang.String GROUP
          Tag for GROUP
static java.lang.String ISURL
          String for IS
static java.lang.String URL
          Tag for URL
static java.lang.String VEURL
          String for VE URL
 
Fields inherited from class context.arch.interpreter.Interpreter
DEFAULT_PORT, inAttributes, inAttributeTypes, INTERPRET, INTERPRET_REPLY, outAttributes, outAttributeTypes
 
Fields inherited from class context.arch.BaseObject
communications, EXIT_OK, handlers, ID, parser, PING, PING_REPLY, serviceHandlers
 
Constructor Summary
IGroup2URL()
          Constructor that creates the interpreter at the default port.
IGroup2URL(int port)
          Constructor that creates the interpreter at the given port.
 
Method Summary
protected  AttributeNameValues interpretData(AttributeNameValues data)
          This method performs the actual interpretation of this component.
static void main(java.lang.String[] argv)
          Main method to create this interpreter with port specified by command line arguments
protected  Attributes setInAttributes()
          Sets the incoming attributes for the interpreter.
protected  Attributes setOutAttributes()
          Sets the outgoing attributes for the interpreter.
 
Methods inherited from class context.arch.interpreter.Interpreter
getInAttributeType, getOutAttributeType, isInAttribute, isOutAttribute, runInterpreterMethod, runUserMethod, setInAttribute, setOutAttribute
 
Methods inherited from class context.arch.BaseObject
askInterpreter, decodeData, encodeData, executeAsynchronousWidgetService, executeSynchronousWidgetService, getHostAddress, getId, getVersion, getVersion, getWidgetAttributes, getWidgetCallbacks, getWidgetServices, pingComponent, pollWidget, putDataInWidget, queryVersion, quit, retrieveDataFrom, retrieveDataFrom, retrieveDataFrom, retrieveDataFrom, retrieveDataFrom, retrieveDataFrom, retrieveDataFrom, returnPing, runComponentMethod, runMethod, serviceResult, setId, setVersion, subscribeTo, subscribeTo, subscribeTo, subscribeTo, unsubscribeFrom, updateAndPollWidget, userCallback, userRequest, userRequest, userRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME
Name of interpreter

URL

public static final java.lang.String URL
Tag for URL

GROUP

public static final java.lang.String GROUP
Tag for GROUP

FCEURL

public static final java.lang.String FCEURL
String for FCE URL

VEURL

public static final java.lang.String VEURL
String for VE URL

ISURL

public static final java.lang.String ISURL
String for IS

CRBURL

public static final java.lang.String CRBURL
String for CRB
Constructor Detail

IGroup2URL

public IGroup2URL()
Constructor that creates the interpreter at the default port. It sets the id of the this interpreter to CLASSNAME.

IGroup2URL

public IGroup2URL(int port)
Constructor that creates the interpreter at the given port. It sets the id of the this interpreter to CLASSNAME.
Method Detail

interpretData

protected AttributeNameValues interpretData(AttributeNameValues data)
This method performs the actual interpretation of this component. It takes a group and returns a url.
Overrides:
interpretData in class Interpreter
Parameters:
data - AttributeNameValues containing data to be interpreted
Returns:
AttributeNameValues object containing the interpreted data

setInAttributes

protected Attributes setInAttributes()
Sets the incoming attributes for the interpreter. It has only one: GROUP
Overrides:
setInAttributes in class Interpreter
Returns:
the incoming attributes for this interpreter

setOutAttributes

protected Attributes setOutAttributes()
Sets the outgoing attributes for the interpreter. It has only one: URL
Overrides:
setOutAttributes in class Interpreter
Returns:
the outgoing attributes for this interpreter

main

public static void main(java.lang.String[] argv)
Main method to create this interpreter with port specified by command line arguments