EmbASP-Java
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.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

Definition at line 18 of file Mapper.java.

Member Function Documentation

◆ 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

Definition at line 39 of file Mapper.java.

◆ 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

Definition at line 82 of file Mapper.java.

◆ 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

Definition at line 123 of file Mapper.java.


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