lib
Interface IPrimitiveReader

All Known Implementing Classes:
LispPrimitiveParser, PythonPrimitivesParser

public interface IPrimitiveReader

A Primitive Reader is an object that can produce a list of actions or senses from an input file. This is used for validating diagrams elsewhere.

Version:
1.0
Author:
CobaltSoftware (abode.devteam@cobaltsoftware.net)

Method Summary
 boolean canRead(java.lang.String strFile)
          Can this reader process the given file?
 java.util.ArrayList getActions(java.lang.String strFile)
          Get the list of action primitives file
 java.lang.String getDescription()
          Get the description of file
 java.util.ArrayList getSenses(java.lang.String strFile)
          Get the list of sense primitives from this file
 

Method Detail

canRead

boolean canRead(java.lang.String strFile)
Can this reader process the given file?

Parameters:
strFile - Path to file to read
Returns:
True if file contains primitives, false if not

getActions

java.util.ArrayList getActions(java.lang.String strFile)
Get the list of action primitives file

Parameters:
strFile - Path to file to read.
Returns:
Arraylist of actions found in the file

getDescription

java.lang.String getDescription()
Get the description of file

Returns:
Description of the types of file this parser can read.

getSenses

java.util.ArrayList getSenses(java.lang.String strFile)
Get the list of sense primitives from this file

Parameters:
strFile - Path to file to read.
Returns:
Arraylist of sense primitives found in the file