Wiki
Clone wikioccam-web / Beginners-Guide / 3.Defining-the-Object-Input
PREVIOUS: Adding a Configuration Schema
Defining the Object Input
The next step is to add the information about the input of our object (i.e. the input file of our dummy program). For this purpose, we will use a volume object, which we will create at a latter time.
For now, edit the the object description file (object.json
) to add the information about an input file of type volume
:
"inputs": [ { "type": "volume" } ]
The complete file should look like this:
{ "type": "simulator", "id": "95fdb476-8984-11e6-8e21-1c1b0d0a9044", "name": "ExampleSim", "configurations": [ { "schema": "config_schema.json", "file": "input.json", "name": "Configuration Options" } ], "inputs": [ { "type": "volume" } ] }
Commit the new revision
Now we can commit the new revision of the object.
$ git add object.json
$ git commit -am "Object now accepts one input of type volume"
$ occam commit
Updated