Difference between revisions of "Drive (LogiX node)/ja"

From Neos Wiki
Jump to navigation Jump to search
 
(13 intermediate revisions by the same user not shown)
Line 14: Line 14:
 
}}
 
}}
  
<div class="mw-translate-fuzzy">
+
'''Drive'''ノードは <code>StartDrive</code> でインパルスを受け取ると、入力 <code>Source</code> 値で参照されている <code>DriveTarget</code> を[[Drive/ja|ドライブ]]し始めます。ドライブは<code>StopDrive</code>でインパルスを受信すると停止します。
<!--[[File:|border|256px|right]]-->
 
</div>
 
  
<div class="mw-translate-fuzzy">
+
== 使用方法 ==
== Inputs & Outputs ==
+
ノードブラウザからノードが生成されたとき、<code>Source</code>入力は'dummy'のデータ型を持っています。しかし、適切なワイヤが接続されると、ノードは正しい値型に上書きされます。
{| class="wikitable"
 
|+Inputs
 
|-
 
| Color
 
| Label
 
| Type
 
|-
 
| style="background-color:{{Impulse-color}}" |
 
| StartDrive
 
| [[:LogiX:Impulses|Impulse]]
 
|-
 
| style="background-color:{{Impulse-color}}" |
 
| StopDrive
 
| [[:LogiX:Impulses|Impulse]]
 
|-
 
| style="background-color:{{Dummy-color}}" |
 
| Source
 
| [[:Category:Types:Dummy|(dummy)]]
 
|}
 
</div>  
 
  
  
The <code>OnStartDrive</code> output fires an impulse whenever an impulse arrives at the <code>StartDrive</code> input. This continues the impulse chain which arrived at <code>StartDrive</code>.
+
<code>StartDrive</code>入力にインパルスが到着するたびに<code>OnStartDrive</code>からインパルスを出力します。これは<code>StartDrive</code>に到着したインパルスの連鎖を継続させます。
  
  
The <code>OnStopDrive</code> output fires an impulse whenever an impulse arrives at the <code>StopDrive</code> input. This continues the impulse chain which arrived at <code>StopDrive</code>.
+
<code>StopDrive</code>入力にインパルスが到達するたびに<code>OnStopDrive</code>からインパルスを出力します。これは、<code>StopDrive</code>に到着したインパルスの連鎖を継続させます。
  
  
The <code>OnHook</code> fires an impulse whenever the <code>DriveTarget</code> is driven with the <code>Source</code> value and another source (e.g. a [[Write (LogiX node)|Write]] node or [[ButtonValueSet (Component)|ButtonValueSet]] component) attempts (but is not able) to overwrite the value.
+
<code>OnHook</code> は、<code>DriveTarget</code> <code>Source</code> 値でドライブされている時に、他のソース(例えば[[Write (LogiX node)/ja|Write]]ノードや [[ButtonValueSet (Component)|ButtonValueSet]]コンポーネント)が値を上書きしようとする(しかしできない)とインパルスを出力します。
  
  
The <code>IsDriving</code> output is True while the <code>DriveTarget</code> is driven with the <code>Source</code> value, otherwise False.
+
<code>IsDriving</code>出力は、<code>DriveTarget</code><code>Source</code>の値でドライブしている間はTrue、それ以外はFalseです。
  
  
The <code>HookedValue</code> output provides the value which another source attempted to set the <code>DriveTarget</code> to when an impulse is fired from <code>OnHook</code>. The value is only available for the duration of the impulse chain started from <code>OnHook</code>.
+
<code>HookedValue</code> は、<code>OnHook</code> からインパルスが出力されたときに、他のソースが <code>DriveTarget</code> に設定しようとした値を出力します。この値は、<code>OnHook</code>からインパルスが出力された瞬間のみ有効です。
  
  
Note that, when an impulse is received at <code>StartDrive</code> the drive target will become driven by the <code>Source</code> value regardless of whether it was already driven by some other source i.e. control of the target value is overridden.
+
<code>StartDrive</code>にインパルスを入力すると、ターゲットが既に他のソースによって駆動されているかどうかに関わらず、<code>Source</code>値によってドライブされるようになることに注意してください、つまりターゲット値のドライブが上書きされます。
  
<div class="mw-translate-fuzzy">
+
== ==
{| class="wikitable"
+
[[File:LogiX.Actions.Drive.Sample.jpg|900px|Drive example]]
|+Outputs
 
|-
 
| Color
 
| Label
 
| Type
 
|-
 
| style="background-color:{{IField-color}}" |
 
| DriveTarget
 
| [[:Category:Types:IField`1|IField<nowiki><T></nowiki>]]
 
|-
 
| style="background-color:{{Impulse-color}}" |
 
| OnStartDrive
 
| [[:LogiX:Impulses|Impulse]]
 
|-
 
| style="background-color:{{Impulse-color}}" |
 
| OnStopDrive
 
| [[:LogiX:Impulses|Impulse]]
 
|-
 
| style="background-color:{{Impulse-color}}" |
 
| OnHook
 
| [[:LogiX:Impulses|Impulse]]
 
|-
 
| style="background-color:{{Boolean-color}}" |
 
| IsDriving
 
| [[:Category:Types:Bool|Boolean]]
 
|-
 
| style="background-color:{{Dummy-color}}" |
 
| HookedValue
 
| [[:Category:Types:Dummy|(dummy)]]
 
|}
 
</div>
 
  
<div class="mw-translate-fuzzy">
+
== ノードメニュー ==
== Usage ==
 
ソース入力とHookedValue出力は未設定のダミー型で始まり、これらのいずれか、またはDriveTargetが設定されると、ノードは適切な型に再設定されます。TargetValueによって参照される値が別のドライブノードを含む別のソースによって上書きされている場合、StartDriveでインパルスを受信すると、前の上書き設定は新しいドライブソースによって上書きの設定が上書きされます。ドライブノードがDriveTargetにアクティブな上書き先を設定し、その値への書き込みを試みると、OnHookからインパルスが発射され、HookedValue出力はターゲットに書き込まれたであろう値を提供します(OnHookからのインパルスチェーンの間は利用可能)。OnStartDriveとOnStopDriveは、それぞれStartDriveとStopDriveでのインパルスの結果として上書き動作が正常に起動または停止したときにインパルスを発生させます。
 
</div>
 
  
 
[[Category:LogiX{{#translation:}}|Drive]]
 
[[Category:LogiX{{#translation:}}|Drive]]
[[Category:LogiX:Actions{{#translation:}}|Drive]]
+
[[Category:LogiX{{#translation:}}:Actions{{#translation:}}|Drive]]
{{NodeMenu-Actions{{#translation:}}}}
+
{{NodeMenu-Actions}}

Latest revision as of 11:38, 20 February 2022

Other languages:
English • ‎日本語 • ‎한국어
Drive
'Drive' LogiX node
Inputs
  Impulse StartDrive
  Impulse StopDrive
  dummy Source
Outputs
  IField`1 DriveTarget
  Impulse OnStartDrive
  Impulse OnStopDrive
  Impulse OnHook
  Bool IsDriving
  dummy HookedValue

Driveノードは StartDrive でインパルスを受け取ると、入力 Source 値で参照されている DriveTargetドライブし始めます。ドライブはStopDriveでインパルスを受信すると停止します。

使用方法

ノードブラウザからノードが生成されたとき、Source入力は'dummy'のデータ型を持っています。しかし、適切なワイヤが接続されると、ノードは正しい値型に上書きされます。


StartDrive入力にインパルスが到着するたびにOnStartDriveからインパルスを出力します。これはStartDriveに到着したインパルスの連鎖を継続させます。


StopDrive入力にインパルスが到達するたびにOnStopDriveからインパルスを出力します。これは、StopDriveに到着したインパルスの連鎖を継続させます。


OnHook は、DriveTargetSource 値でドライブされている時に、他のソース(例えばWriteノードや ButtonValueSetコンポーネント)が値を上書きしようとする(しかしできない)とインパルスを出力します。


IsDriving出力は、DriveTargetSourceの値でドライブしている間はTrue、それ以外はFalseです。


HookedValue は、OnHook からインパルスが出力されたときに、他のソースが DriveTarget に設定しようとした値を出力します。この値は、OnHookからインパルスが出力された瞬間のみ有効です。


StartDriveにインパルスを入力すると、ターゲットが既に他のソースによって駆動されているかどうかに関わらず、Source値によってドライブされるようになることに注意してください、つまりターゲット値のドライブが上書きされます。

Drive example

ノードメニュー

Actions
Back -- ++ Drive Drive Playback Tween Write
Write Latch Write Ref Write Ref Latch