spin is an experimental project and far from beeing available for commercial usage. If you are interrested in spin: mailto://spin@toem.de.

Introducing Spin 6 - Sensitivity

Processes are driven by time and/or sensitivity. Default sensitivity allows to trigger a process when a port has changed or modified its value. By deriving the default sensitivity class, the developer can define more concrete conditions when to trigger a certain process.

Default Sensitivity

Default sensitivity can be used with connectors of type IInPort (changed) and IPort (modified).

public void initialize() {

Extended Sensitivity

By deriving the class Sensitivity, the developer can define special conditions, when to fire the process.

Sensitivity<Integer> s2 = new Sensitivity<Integer>(in2, null) {

	public void onChanged(Integer current, Integer previous) {
		if (isEnabled()) {
			if (current > 100)


User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive