Java CoG Kit Karajan Almanac

From Java CoG Kit

Jump to: navigation, search

Contents

About this Document

In this document we intend to collect examples that demonstrate features of the Karajan Workflow. We start with examples that demonstrate language features. Once this is complete we intend to put together more extensive examples showing programming pattrens on the Grid.

An Index can be found at http://wiki.cogkit.org/index.php/V:Head/Karajan:Element_Index

Contributors

In alphabetical order

  • Aman Sabharwal
  • Gregor von Laszewski
  • Kamal Agarwal

Language

done Feature .k .xml
- Elements
- Identifiers
- Arguments
- Named Arguments
- Unnamed Arguments
- Expressions
- Operators
- Quoted Lists
- Programs
- Comments
- The XML Syntax
- Particularities of Using XML
- Parameters and Return Values
- Parameters and Arguments
- Single Value Arguments
- Channels
- Argument Mapping
- Optional Arguments
- Return values
- Argument Evaluation Order
- Variables and Scope
- Global Variables
- Variable Expansion
- Futures
- Source Files
- Libraries
- Namespaces

Kernel Elements

done Feature .k .xml
image:checkmark.gif project project.k project.xml
image:checkmark.gif import import.k import.xml
image:checkmark.gif export export.k export.xml
- define define.k
image:checkmark.gif namespace namespace.k namespace.xml
- elementdef
- named
- number
- string
- variable
- quotedlist
- cache

Flow Control Elements

done Feature .k .xml
- sequential
- parallel
- unsynchronized
- choice
- catch
- guard
- race
- for
- parallelFor
- while
- condition
- break
- continue
- if
- then

Elements Dealing with Variables and Arguments

done Feature .k .xml
image:checkmark.gif set set.k set.xml
- default
- maybe
- global
- to
- from
- isDefined
- quoted
- discard
- future
- futureIterator

Element Definition Elements

done Feature .k .xml
image:checkmark.gif element element.k element.xml
- parallelElement
- channel
- optional

Service Interaction Elements

done Feature .k .xml
- remote

List Manipulation Elements

done Feature .k .xml
image:checkmark.gif list list.k list.xml
image:checkmark.gif append append.k append.xml
image:checkmark.gif prepend prepend.k prepend.xml
image:checkmark.gif join join.k join.xml
image:checkmark.gif size size.k size.xml
image:checkmark.gif first first.k first.xml
image:checkmark.gif last last.k last.xml
image:checkmark.gif butFirst butFirst.k butFirst.xml
image:checkmark.gif butLast butLast.k butLast.xml
image:checkmark.gif isEmpty isEmpty.k isEmpty.xml

Map Elements

done Feature .k .xml
- map
- entry
- put
- delete
- get
- size
- contains

Logic Elements

done Feature .k .xml
image:checkmark.gif and and.k and.xml
image:checkmark.gif or or.k or.xml
image:checkmark.gif not not.k not.xml
image:checkmark.gif equals equals.k equals.xml
image:checkmark.gif true true.k true.xml
image:checkmark.gif false false.k false.xml

Numeric Elements

done Feature .k .xml .xml (gui version)
image:checkmark.gif sum sum.k sum.xml sum-gui.xml
image:checkmark.gif product product.k product.xml product-gui.xml
image:checkmark.gif subtraction subtraction.k subtraction.xml subtraction-gui.xml
image:checkmark.gif quotient quotient.k quotient.xml quotient-gui.xml
image:checkmark.gif remainder remainder.k remainder.xml remainder-gui.xml
image:checkmark.gif square square.k square.xml square-gui.xml
image:checkmark.gif sqrt sqrt.k sqrt.xml sqrt-gui.xml
image:checkmark.gif equalsNumeric equalsNumeric.k equalsNumeric.xml equalsNumeric-gui.xml
image:checkmark.gif greaterThan greaterThan.k greaterThan.xml greaterThan-gui.xml
image:checkmark.gif lessThan lessThan.k lessThan.xml lessThan-gui.xml
image:checkmark.gif greaterOrEqual greaterOrEqual.k greaterOrEqual.xml greaterOrEqual-gui.xml
image:checkmark.gif lessOrEqual lessOrEqual.k lessOrEqual.xml lessOrEqual-gui.xml
image:checkmark.gif min min.k min.xml -
image:checkmark.gif max max.k max.xml -
image:checkmark.gif int int.k int.xml int-gui.xml
image:checkmark.gif ln ln.k ln.xml ln-gui.xml
image:checkmark.gif exp exp.k exp.xml exp-gui.xml
image:checkmark.gif random random.k random.xml -

Error Handling Elements

done Feature .k .xml
- ignoreErrors
- restartOnError
- generateError
- onError

Miscellaneous Elements

done Feature .k .xml
image:checkmark.gif print print.k print.xml
image:checkmark.gif echo echo.k echo.xml
- checkpoint
- wait
- time
- file:execute
- executeElement
- elementList
- cacheOn
- numberFormat
- file:contains
- uid
- file:read
- file:write
- outputStream
- closeStream
image:checkmark.gif concat concat.k concat.xml
image:checkmark.gif split split.k split.xml
image:checkmark.gif strip strip.k strip.xml
- matches matches.xml
image:checkmark.gif nl nl.k nl.xml
- filter filter.xml

Task Elements

done Feature .k .xml
- scheduler
- handler
- resources
- host
- service
- securityContext
- allocateHost
- host
- execute
- transfer
- file:list
- file:remove
- file:exists
- dir:make
- dir:remove
- file:isDirectory
- file:chmod
- file:rename
- SSHSecurityContext
- InteractiveSSHSecurityContext
- passwordAuthentication
- publicKeyAuthentication

Java Elements

done Feature .k .kxml
- new
- invokeMethod
- executeMain
- getField
- waitForEvent
- classOf
- null

HTML Elements

done Feature .k .xml
image:checkmark.gif write write.k write.xml
image:checkmark.gif quickstart quickstart.k quickstart.xml
image:checkmark.gif html html_tag.k html_tag.xml
image:checkmark.gif head head.k head.xml
image:checkmark.gif title title.k title.xml
image:checkmark.gif body body.k body.xml
image:checkmark.gif table table.k table.xml
image:checkmark.gif tr tr.k tr.xml
image:checkmark.gif td td.k td.xml
image:checkmark.gif th th.k th.xml
image:checkmark.gif h1 h1.k h1.xml
image:checkmark.gif h2 h2.k h2.xml
image:checkmark.gif h3 h3.k h3.xml
image:checkmark.gif h4 h4.k h4.xml
image:checkmark.gif h5 h5.k h5.xml
image:checkmark.gif h6 h6.k h6.xml
image:checkmark.gif ul ul.k ul.xml
image:checkmark.gif pre pre.k pre.xml
image:checkmark.gif br br.k br.xml
image:checkmark.gif li li.k li.xml
image:checkmark.gif a a.k a.xml
image:checkmark.gif anchor anchor.k anchor.xml
image:checkmark.gif img img.k img.xml
image:checkmark.gif text text.k text.xml

Form Elements

done Feature .k .xml
image:checkmark.gif form form.k form.xml
image:checkmark.gif hbox hbox.k hbox.xml
image:checkmark.gif vbox vbox.k vbox.xml
image:checkmark.gif label label.k label.xml
image:checkmark.gif button button.k button.xml
image:checkmark.gif checkBox checkBox.k checkBox.xml
image:checkmark.gif radioBox radioBox.k radioBox.xml
image:checkmark.gif radioButton radioButton.k radioButton.xml
image:checkmark.gif textField textField.k textField.xml
image:checkmark.gif passwordField passwordField.k passwordField.xml
image:checkmark.gif comboBox comboBox.k comboBox.xml
image:checkmark.gif comboItem comboItem.k comboItem.xml
image:checkmark.gif HSeparator HSeparator.k HSeparator.xml
image:checkmark.gif VSeparator VSeparator.k VSeparator.xml
image:checkmark.gif filler filler.k filler.xml
image:checkmark.gif messageDialog messageDialog.k messageDialog.xml
Personal tools
Collaboration and Jobs