Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
h2. Summary In the Seamless project
scrollbar

Summary

In the Seamless project agro-environmental

...

models

...

exchange

...

whole

...

data

...

structures

...

(e.g.

...

crop,

...

farm)

...

instead

...

of

...

single

...

values.

...

In

...

the

...

Seamless

...

project

...

these

...

data

...

structures

...

are

...

java

...

classes,

...

generated

...

from

...

ontology.

...

This

...

is

...

to

...

ensure

...

models

...

use

...

shared

...

definitions

...

of

...

concepts.

...

How

...

to

...

address

...

in

...

Version

...

1

...

Some

...

sample

...

code:

{
Code Block
}

public class SimpleCropProvider extends SeamLinkableComponent {

	public SimpleCropProvider(String ID) {
		super(ID);
		registerOutputExchangeItem(Crop.class);
	}

	...
}


public abstract class SeamLinkableComponent extends LinkableComponent {

	...

	protected <I extends Class> ValueSet registerOutputExchangeItem(I type) {
		SeamOutputExchangeItem<I> item = new SeamOutputExchangeItem<I>(this,
				type);
		outputExchangeItems.add(item);
		ValueSet<I> values = new ValueSet<I>();
		outputs.put(type, values);
		return values;
	}

	...
}

{code}

...

...

How

...

to

...

address

...

in

...

Version

...

2

...

...

scrollbar