gnu.prolog.vm.buildins.datetime
Class Predicate_date_time_value
java.lang.Object
   gnu.prolog.vm.ExecuteOnlyCode
gnu.prolog.vm.ExecuteOnlyCode
       gnu.prolog.vm.buildins.datetime.DateTimePrologCode
gnu.prolog.vm.buildins.datetime.DateTimePrologCode
           gnu.prolog.vm.buildins.datetime.Predicate_date_time_value
gnu.prolog.vm.buildins.datetime.Predicate_date_time_value
- All Implemented Interfaces: 
- Installable, PrologCode
- public class Predicate_date_time_value 
- extends DateTimePrologCode
- Author:
- Michiel Hendriks
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
yearAtom
public static final AtomTerm yearAtom
monthAtom
public static final AtomTerm monthAtom
dayAtom
public static final AtomTerm dayAtom
hourAtom
public static final AtomTerm hourAtom
minuteAtom
public static final AtomTerm minuteAtom
secondAtom
public static final AtomTerm secondAtom
utcOffsetAtom
public static final AtomTerm utcOffsetAtom
timeZoneAtom
public static final AtomTerm timeZoneAtom
daylightSavingAtom
public static final AtomTerm daylightSavingAtom
date9keys
public static final AtomTerm[] date9keys
Predicate_date_time_value
public Predicate_date_time_value()
execute
public int execute(Interpreter interpreter,
                   boolean backtrackMode,
                   Term[] args)
            throws PrologException
- Description copied from interface: PrologCode
- this method is used for execution of code
 
- 
- Specified by:
- executein interface- PrologCode
- Specified by:
- executein class- ExecuteOnlyCode
 
- 
- Parameters:
- interpreter- interpreter in which context code is executed
- backtrackMode- true if predicate is called on backtracking and false otherwise
- args- arguments of code
- Returns:
- either SUCCESS, SUCCESS_LAST, or FAIL.
- Throws:
- PrologException
 
getDate9Value
protected Term getDate9Value(Term keyTerm,
                             CompoundTerm date9)
                      throws PrologException
- 
- Parameters:
- keyTerm- the term to use to select which part of date9 to return
- date9-
- Returns:
- the Term representing the part of date9 selected by keyTerm
- Throws:
- PrologException
 
nextSolution
protected int nextSolution(Interpreter interpreter,
                           gnu.prolog.vm.buildins.datetime.Predicate_date_time_value.Date9BacktrackInfo bi)
                    throws PrologException
- 
- Parameters:
- interpreter-
- bi-
- Returns:
- PrologCode return code
- Throws:
- PrologException