Difference between revisions of "Object Oriented Programming"

esse quam videri
Jump to: navigation, search
Line 4: Line 4:
  
 
<code>
 
<code>
<java/>
+
<sh/>
/*
+
#!/bin/bash
* Algernon - a rule-based inference engine in Java.
+
#Getting some variables
* http://algernon-j.sourceforge.net/
+
FULLPATH=`dirname $1`;
*
+
BASE=`basename $1`;
* This example shows how to open a Protege knowledge base
+
# Needs an argument
* in Java and use Algernon to query the KB.
+
if [ $# -eq 0 ] ; then
*
+
  # no argument given, print usage
* To run it, be sure to change the path in NEWSPAPER_PROJECT
+
  echo "start control version on configuration file";
* to match the correct project on your system.
+
  echo "use: $0 file";
*
+
else
* Micheal Hewett
 
* 05 May 2004
 
* hewett@cs.stanford.edu
 
*/
 
 
 
package org.algernon.test;
 
 
 
import java.util.*;
 
 
</code>
 
</code>

Revision as of 05:38, 6 January 2006

POOP

poop test

<sh/>

  1. !/bin/bash
  2. Getting some variables

FULLPATH=`dirname $1`; BASE=`basename $1`;

  1. Needs an argument

if [ $# -eq 0 ] ; then

 # no argument given, print usage
 echo "start control version on configuration file";
 echo "use: $0 file";

else