EmbASP-Narrative v7.1.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
it.unical.mat.embasp.languages.Mapper Class Referenceabstract
Inheritance diagram for it.unical.mat.embasp.languages.Mapper:
it.unical.mat.embasp.languages.asp.ASPMapper it.unical.mat.embasp.languages.datalog.DatalogMapper it.unical.mat.embasp.languages.pddl.PDDLMapper

Public Member Functions

Class<?> getClass (final String predicate)
 
Object getObject (final String atom) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, InstantiationException
 
String getString (final Object obj) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ObjectNotValidException, IllegalAnnotationException, IllegalTermException
 
String registerClass (final Class<?> cl) throws ObjectNotValidException, IllegalAnnotationException
 
void unregisterClass (final Class<?> cl) throws IllegalAnnotationException
 

Protected Member Functions

abstract String getActualString (String predicate, HashMap< Integer, Object > parametersMap) throws IllegalTermException
 
abstract String getId (final String atom)
 
abstract String[] getParam (final String atom)
 

Protected Attributes

final Map< String, Class<?> > predicateClass = new HashMap<>()
 
final Map< Class<?>, Map< String, Method > > classSetterMethod = new HashMap<>()
 

Detailed Description

Base class Contains methods used to transform Objects into it.unical.mat.embasp.base.InputProgram

Member Function Documentation

◆ getActualString()

abstract String it.unical.mat.embasp.languages.Mapper.getActualString ( String  predicate,
HashMap< Integer, Object >  parametersMap 
) throws IllegalTermException
abstractprotected

◆ getClass()

Class<?> it.unical.mat.embasp.languages.Mapper.getClass ( final String  predicate)
inline

◆ getId()

abstract String it.unical.mat.embasp.languages.Mapper.getId ( final String  atom)
abstractprotected

◆ getObject()

Object it.unical.mat.embasp.languages.Mapper.getObject ( final String  atom) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, InstantiationException
inline

Returns an Object for the given string

Parameters
stringString from witch data are extrapolated
Returns
Object for the given String data
Exceptions
IllegalAccessException,IllegalArgumentException,InvocationTargetException,NoSuchMethodException,SecurityException,IllegalTermException

◆ getParam()

abstract String [] it.unical.mat.embasp.languages.Mapper.getParam ( final String  atom)
abstractprotected

◆ getString()

String it.unical.mat.embasp.languages.Mapper.getString ( final Object  obj) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ObjectNotValidException, IllegalAnnotationException, IllegalTermException
inline

Returns data for the given Object

Parameters
objObject from witch data are extrapolated
Returns
String data for the given Object in a String format
Exceptions
IllegalAccessException,IllegalArgumentException,InvocationTargetException,NoSuchMethodException,SecurityException,IllegalTermException,IllegalTermException

◆ registerClass()

String it.unical.mat.embasp.languages.Mapper.registerClass ( final Class<?>  cl) throws ObjectNotValidException, IllegalAnnotationException
inline

insert an object into predicateClass and classSetterMethod

Returns
String representing pairing key of predicateClass

◆ unregisterClass()

void it.unical.mat.embasp.languages.Mapper.unregisterClass ( final Class<?>  cl) throws IllegalAnnotationException
inline

Member Data Documentation

◆ classSetterMethod

final Map<Class<?>, Map<String, Method> > it.unical.mat.embasp.languages.Mapper.classSetterMethod = new HashMap<>()
protected

◆ predicateClass

final Map<String, Class<?> > it.unical.mat.embasp.languages.Mapper.predicateClass = new HashMap<>()
protected

The documentation for this class was generated from the following file: