操作方法
ここではYAMLを作成するページの使い方とサンプルを示します。
ページ自身が試作段階なので最低限のことしか書きません。もっとまともなものができたらしっかりとしたチュートリアルを書きます。
基本的にはSearch
でプロセッサーを検索して追加するかセレクトボックスから追加したいプロセッサを選択したのちにAdd Block
で追加して左から順番に配置し、パラメータを入力だけです。
Save as JSON
でページの図の配置をJSON形式で保存できます。Load JSON
で保存したものを読み込むこともできます。
Generate YAML
やDownload YAML
で解析で使用できるフォーマットで出力してくれます。Generate YAML
ではポップアップが表示され、生成したYAMLファイルを目視で確認できます。一方でDownload YAML
ではYAMLになったものをローカルにダウンロードしてきます。複数のYAMLに分けて出力する場合に有効。
Shift+クリックで複数のブロックを選択できます。選択した後にGroup Blocks
を押すとグループ化できます。
グループ化されたブロックはYAMLを生成する際に、別ファイルとして出力でされます(ファイル名は"Group LABEL"になります。)。その際にYAMLの記法に沿ったパラメータを使いたい場合はグループ化した際に表示される表中のParamters
をクリックして追加してください。
深刻なバグ
警告
Save as PNG()
で画像が見切れます。
最後にページソースはここです。興味があったら見てね。参加してくれても助かります。
サンプル
以下のようなJsonを作り、LoadJSONボタンを押して読み込ませると完成系の一つが見れます。
{
"blocks": [
{
"id": "block1",
"title": "art::TTimerProcessor",
"globalName": "MyTTimerProcessorNum1",
"globalID": "1",
"style": {
"top": "100px",
"left": "45px",
"height": "90px",
"width": ""
},
"parameters": [
{
"parameter": "OutputTransparency",
"value": "0",
"top": "52px",
"left": "120px"
},
{
"parameter": "Verbose",
"value": "1",
"top": "77px",
"left": "120px"
}
]
},
{
"id": "block2",
"title": "art::TRandomNumberEventStore",
"globalName": "MyTRandomNumberEventStoreNum2",
"globalID": "2",
"style": {
"top": "15px",
"left": "624px",
"height": "190px",
"width": ""
},
"parameters": [
{
"parameter": "Max",
"value": "1",
"top": "52px",
"left": "120px"
},
{
"parameter": "MaxLoop",
"value": "@MAXEVT@",
"top": "77px",
"left": "120px"
},
{
"parameter": "Min",
"value": "0",
"top": "102px",
"left": "120px"
},
{
"parameter": "OutputCollection",
"value": "@INPUT@2",
"top": "127px",
"left": "120px"
},
{
"parameter": "OutputTransparency",
"value": "0",
"top": "152px",
"left": "120px"
},
{
"parameter": "Verbose",
"value": "1",
"top": "177px",
"left": "120px"
}
]
},
{
"id": "block3",
"title": "art::TRandomNumberEventStore",
"globalName": "MyTRandomNumberEventStoreNum3",
"globalID": "3",
"style": {
"top": "364px",
"left": "291px",
"height": "190px",
"width": ""
},
"parameters": [
{
"parameter": "Max",
"value": "1",
"top": "52px",
"left": "120px"
},
{
"parameter": "MaxLoop",
"value": "@MAXEVT@",
"top": "77px",
"left": "120px"
},
{
"parameter": "Min",
"value": "0",
"top": "102px",
"left": "120px"
},
{
"parameter": "OutputCollection",
"value": "@INPUT@1",
"top": "127px",
"left": "120px"
},
{
"parameter": "OutputTransparency",
"value": "0",
"top": "152px",
"left": "120px"
},
{
"parameter": "Verbose",
"value": "1",
"top": "177px",
"left": "120px"
}
]
},
{
"id": "block4",
"title": "art::TRandomNumberEventStore",
"globalName": "MyTRandomNumberEventStoreNum4",
"globalID": "4",
"style": {
"top": "629px",
"left": "1223px",
"height": "190px",
"width": ""
},
"parameters": [
{
"parameter": "Max",
"value": "1",
"top": "52px",
"left": "120px"
},
{
"parameter": "MaxLoop",
"value": "@MAXEVT@",
"top": "77px",
"left": "120px"
},
{
"parameter": "Min",
"value": "0",
"top": "102px",
"left": "120px"
},
{
"parameter": "OutputCollection",
"value": "@INPUT@5",
"top": "127px",
"left": "120px"
},
{
"parameter": "OutputTransparency",
"value": "0",
"top": "152px",
"left": "120px"
},
{
"parameter": "Verbose",
"value": "1",
"top": "177px",
"left": "120px"
}
]
},
{
"id": "block5",
"title": "art::TRandomNumberEventStore",
"globalName": "MyTRandomNumberEventStoreNum5",
"globalID": "5",
"style": {
"top": "166px",
"left": "861px",
"height": "190px",
"width": ""
},
"parameters": [
{
"parameter": "Max",
"value": "1",
"top": "52px",
"left": "120px"
},
{
"parameter": "MaxLoop",
"value": "@MAXEVT@",
"top": "77px",
"left": "120px"
},
{
"parameter": "Min",
"value": "0",
"top": "102px",
"left": "120px"
},
{
"parameter": "OutputCollection",
"value": "@INPUT@3",
"top": "127px",
"left": "120px"
},
{
"parameter": "OutputTransparency",
"value": "0",
"top": "152px",
"left": "120px"
},
{
"parameter": "Verbose",
"value": "1",
"top": "177px",
"left": "120px"
}
]
},
{
"id": "block6",
"title": "art::TRandomNumberEventStore",
"globalName": "MyTRandomNumberEventStoreNum6",
"globalID": "6",
"style": {
"top": "399px",
"left": "1071px",
"height": "190px",
"width": ""
},
"parameters": [
{
"parameter": "Max",
"value": "1",
"top": "52px",
"left": "120px"
},
{
"parameter": "MaxLoop",
"value": "@MAXEVT@",
"top": "77px",
"left": "120px"
},
{
"parameter": "Min",
"value": "0",
"top": "102px",
"left": "120px"
},
{
"parameter": "OutputCollection",
"value": "@INPUT@4",
"top": "127px",
"left": "120px"
},
{
"parameter": "OutputTransparency",
"value": "0",
"top": "152px",
"left": "120px"
},
{
"parameter": "Verbose",
"value": "1",
"top": "177px",
"left": "120px"
}
]
},
{
"id": "block7",
"title": "art::TOutputTreeProcessor",
"globalName": "MyTOutputTreeProcessorNum7",
"globalID": "7",
"style": {
"top": "153px",
"left": "1308px",
"height": "165px",
"width": ""
},
"parameters": [
{
"parameter": "FileName",
"value": "*output",
"top": "52px",
"left": "120px"
},
{
"parameter": "OutputTransparency",
"value": "0",
"top": "77px",
"left": "120px"
},
{
"parameter": "SplitLevel",
"value": "0",
"top": "102px",
"left": "120px"
},
{
"parameter": "TreeName",
"value": "tree",
"top": "127px",
"left": "120px"
},
{
"parameter": "Verbose",
"value": "1",
"top": "152px",
"left": "120px"
}
]
}
],
"groups": {
"group1": {
"id": "group1",
"label": "random.yaml",
"color": "rgba(106, 201, 216, 0.5)",
"blocks": [
"",
"block2",
"block3",
"block4",
"block5",
"block6"
],
"parameters": {
"INPUT": "random",
"MAXEVT": "*maxevt"
}
}
},
"anchors": [
{
"name": "maxevt",
"value": "100000"
},
{
"name": "output",
"value": "output/sim.root"
}
],
"connections": [
{
"start": {
"blockId": "block3",
"parameter": "MaxLoop"
},
"end": {
"blockId": "block6",
"parameter": "MaxLoop"
}
},
{
"start": {
"blockId": "block3",
"parameter": "MaxLoop"
},
"end": {
"blockId": "block2",
"parameter": "MaxLoop"
}
},
{
"start": {
"blockId": "block3",
"parameter": "MaxLoop"
},
"end": {
"blockId": "block5",
"parameter": "MaxLoop"
}
},
{
"start": {
"blockId": "block3",
"parameter": "MaxLoop"
},
"end": {
"blockId": "block4",
"parameter": "MaxLoop"
}
},
{
"start": {
"blockId": "block3",
"parameter": "MaxLoop"
},
"end": {
"blockId": "block4",
"parameter": "MaxLoop"
}
},
{
"start": {
"blockId": "block3",
"parameter": "Max"
},
"end": {
"blockId": "block2",
"parameter": "Max"
}
},
{
"start": {
"blockId": "block3",
"parameter": "Max"
},
"end": {
"blockId": "block5",
"parameter": "Max"
}
},
{
"start": {
"blockId": "block3",
"parameter": "Max"
},
"end": {
"blockId": "block6",
"parameter": "Max"
}
},
{
"start": {
"blockId": "block3",
"parameter": "Max"
},
"end": {
"blockId": "block4",
"parameter": "Max"
}
},
{
"start": {
"blockId": "block3",
"parameter": "Min"
},
"end": {
"blockId": "block2",
"parameter": "Min"
}
},
{
"start": {
"blockId": "block3",
"parameter": "Min"
},
"end": {
"blockId": "block5",
"parameter": "Min"
}
},
{
"start": {
"blockId": "block3",
"parameter": "Min"
},
"end": {
"blockId": "block6",
"parameter": "Min"
}
},
{
"start": {
"blockId": "block3",
"parameter": "Min"
},
"end": {
"blockId": "block4",
"parameter": "Min"
}
}
]
}