ua.gradsoft.termware
Interface IFacts

All Known Implementing Classes:
DefaultFacts, NullFacts

public interface IFacts

Interface for facts database, called from rules.


Method Summary
 boolean check(Term t, TransformationContext ctx)
          check fact (called from conditions in left part of rules)
 void clearLoggedEntities()
          clear entities to log
 boolean isLoggingMode()
          get logging mode
 void set(Term t, TransformationContext ctx)
          set fact (called from actions in right part of rules)
 void setLoggedEntities(Collection<String> entities)
          set collection of entities to log
 void setLoggedEntity(String s)
          set entity to log.
 void setLoggingMode(boolean mode)
          enable/disable logging
 void unsetLoggedEntity(String s)
          unset entity to log.
 

Method Detail

check

boolean check(Term t,
              TransformationContext ctx)
              throws TermWareException
check fact (called from conditions in left part of rules)

Throws:
TermWareException

set

void set(Term t,
         TransformationContext ctx)
         throws TermWareException
set fact (called from actions in right part of rules)

Throws:
TermWareException

isLoggingMode

boolean isLoggingMode()
get logging mode


setLoggingMode

void setLoggingMode(boolean mode)
enable/disable logging


setLoggedEntity

void setLoggedEntity(String s)
set entity to log. (one of "All", "Facts" and so on)


unsetLoggedEntity

void unsetLoggedEntity(String s)
unset entity to log.


setLoggedEntities

void setLoggedEntities(Collection<String> entities)
set collection of entities to log


clearLoggedEntities

void clearLoggedEntities()
clear entities to log