com.ifcomputer.minerva
Class Application

java.lang.Object
  |
  +--com.ifcomputer.minerva.Application

public class Application
extends java.lang.Object

The class Application is a wrapper class to instantiate Minerva as standalone application.


Constructor Summary
Application()
           
 
Method Summary
 void addInterface(com.ifcomputer.minerva.MrvaSysBip bip)
          This function can be used to declare additional builtin functions.
 int getExitValue()
           
 void init(java.lang.String[] args)
          This function is used to initialize the Minerva engine.
 boolean is_daemon()
           
static void main(java.lang.String[] args)
          This function initializes a new application and calls its start function.
 void start()
          This function starts the Minerva engine.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Application

public Application()
Method Detail

init

public void init(java.lang.String[] args)
          throws java.io.IOException,
                 MinervaSystemError
This function is used to initialize the Minerva engine.

Parameters:
args - This parameter is used to pass arguments (the command line arguements of the application) to the Minerva engine.
java.io.IOException
MinervaSystemError
See Also:
Minerva.Minerva(String[])

addInterface

public void addInterface(com.ifcomputer.minerva.MrvaSysBip bip)
                  throws MinervaSystemError
This function can be used to declare additional builtin functions.

Parameters:
bip - Description of the additional builtins and their implementation.
MinervaSystemError

start

public void start()
           throws java.io.IOException,
                  MinervaSystemError
This function starts the Minerva engine. If the predicate main/1 is defined, it will be called. Otherwise the function tries to load the module "system_main". If main/1 is defined afterward, this predicate will be called. Otherwise the function tries to call the predicate break/1.

java.io.IOException
MinervaSystemError

is_daemon

public boolean is_daemon()

getExitValue

public int getExitValue()

main

public static void main(java.lang.String[] args)
This function initializes a new application and calls its start function.