nl.tudelft.goal.EIS2Java.util
Class EIS2JavaUtil

Package class diagram package EIS2JavaUtil
java.lang.Object
  extended by nl.tudelft.goal.EIS2Java.util.EIS2JavaUtil

public class EIS2JavaUtil
extends Object


Constructor Summary
EIS2JavaUtil()
           
 
Method Summary
static String getNameOfAction(eis.iilang.Action action)
          Returns the name of the action used for storage.
static String getNameOfAction(Method method)
          Returns the name of the action method used for storage.
static String getNameOfPercept(Method method)
           
static Map<String,Method> processActionAnnotations(Class<?> clazz)
          Processes all annotations for the given class.
static Set<Method> processPerceptAnnotations(Class<?> clazz)
          Processes all AsPercept annotations for the given class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EIS2JavaUtil

public EIS2JavaUtil()
Method Detail

processPerceptAnnotations

public static Set<Method> processPerceptAnnotations(Class<?> clazz)
                                             throws eis.exceptions.EntityException
Processes all AsPercept annotations for the given class.

Returns:
processed annotations
Throws:
eis.exceptions.EntityException - Thrown when the annotations are not used properly.

processActionAnnotations

public static Map<String,Method> processActionAnnotations(Class<?> clazz)
                                                   throws eis.exceptions.EntityException
Processes all annotations for the given class.

Returns:
processed annotations
Throws:
eis.exceptions.EntityException - Thrown when the annotations are not used properly.

getNameOfAction

public static String getNameOfAction(eis.iilang.Action action)
Returns the name of the action used for storage. The name of the given action and the number of parameters are used as an identifier.

Parameters:
action - The action to get the name of.

getNameOfAction

public static String getNameOfAction(Method method)
Returns the name of the action method used for storage. The name given in the AsAction.name() and the number of parameters are used as an identifier.

Parameters:
action - The method to get the name of.

getNameOfPercept

public static String getNameOfPercept(Method method)


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.