FSM Spider
-
VRML World
-
Author: Oguz Kaan Onbilger
-
Overview: This is an FSM implementation created by using the FSM
PROTOs. The FSM has four states (s1, s2, s3 and s4) and 6 transitions (t1,
t2, t3, t4, t5, t6). We use a spider net metaphor with lines and insects
stuck to the net. Insects Insect1 through Insect4 represent
the states state1, state2, state3 and state4. Line1 through Line6 represent
the 6 transitions.
-
Model Templates: FSM = Finite State Machine
-
Metaphors: Spider Net.
-
Simulation: Viewpoints: Lamp view (initial), Net view
(bottom) to see the details.
Execution: The logic is as follows:
(s1,0)->s1;
(s1,1)->s2; (s2,0)->s3; (s2,1)->s1; (s3,0)->s4; (s3,1)->s2; (s4,0)->s4;
(s4,1)->s3. The start state is s1 and there is a transition from all
states to at least one state.
Animation: There are two buttons at the base of the lamp.
The red button is aimed to be used to turn the lamp on and to gradually increase the
illumination. The blue button does the opposite. But in this world we see the
internal operation of the lamp via the metaphor on top of the FSM. That is the
insects change visibility when a state is enabled.
Also the green spider sits on the active state on top of the insect. When
state changes spider moves toward the active insect and catches it.
Audio: None.
-
Modeling PROTOs used: FSM, FSM_STATE, FSM_TRANSITION and World Objects.
-
Object Hierarchy:
Object (OBJECT)
behavior SpiderNet
Plant (FSM)
states Insect1, Insect2, Insect3, Insect4
transitions Line1, Line2, Line3, Line4, Line5, Line6
Insect1 through Insect4 (FSM-STATE)
behavior script
Line1 through Line6 (FSM-TRANSITION)
script