Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

BaSyx / Documentation / HashMap Provider

Overview | HashMap provider | Lambda provider | FileSystem provider | Implementation

The HashMap provider is one of the basic providers in the BaSyx SDK for generic models. A HashMap serves as the root element for storing the contained data. By allowing child elements to be HashMaps and Collections, arbitrary hierarchical objects can be represented. Thus, the Virtual Automation Bus does not only support BaSys components but can also handle other data structures. Consider the following example:

{
	"name" : "MyElement",
	"operation" : calculateSomething(),
	"data" : {
		"type" : "boolean",
		"value" : true
	} 
}

Internally, there is a reference to a single HashMap with three entries: name, operation and data. The first two are single elements directly stored in the root HashMap, whereas the last one is an additional HashMap containing two basic data elements.

Copyright © Eclipse Foundation, Inc. All Rights Reserved.