A boolean AND operation.
This SimObject has two input ports, In1
and In2
, and one output port, Out
. If In1
and In2
are both nonzero ("true"), then Out
is equal to 1. Otherwise, Out
is equal to 0 ("false"). Implementation class is And.
- Author
- Lars Tandle Kyllingstad
- Date
- 2012
Example configuration excerpt
<Lib LibName = "fhsim_base"
SimObject = "Boolean/And"
Name = "A"
/>
...
<Connection
A.In1="1"
A.In2="2"
/>
Input Ports
Name | Width | Description |
In1 | 1 | Input 1, real-valued. |
In2 | 1 | Input 2, real-valued. |
Output Ports
Name | Width | Description |
Out | 1 | 1 if In1 and In2 are both nonzero, 0 otherwise. |
Configuration parameters
This SimObject contains no configuration parameters.
Initial conditions
This SimObject contains no initial conditions.
Full example file
<Contents>
<OBJECTS>
<Lib
LibName="base"
SimObject="Boolean/And"
Name="A"
/>
</OBJECTS>
<INTERCONNECTIONS>
<Connection
A.In1="1"
A.In2="0"
/>
</INTERCONNECTIONS>
<INITIALIZATION>
<InitialCondition
/>
</INITIALIZATION>
<INTEGRATION>
<Engine
IntegratorMethod="2"
NumCores="1"
TOutput="0, 1, 30"
LogStates ="1"
stepsize ="0"
HMax="0.002"
HMin="0.00000001"
AbsTol="1e-3" RelTol="1e-3"
UseRSSNormInsteadOfInfNorm="0"
FileOutput="objects:all"
/>
</INTEGRATION>
</Contents>
This SimObject is referred to as Boolean/And