Obstacle.emam 467 Bytes
Newer Older
Bernhard Rumpe's avatar
BR-sy    
Bernhard Rumpe committed
1
/* (c) https://github.com/MontiCore/monticore */
Jean-Marc Ronck's avatar
Jean-Marc Ronck committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package de.rwth.supermario.haller.environment;

import de.rwth.supermario.haller.tools.GetVelocity;

component Obstacle {
    ports
    
        in Z distX,
        in Z distY,
        
        out Z velX,
        out Z velY;

    instance GetVelocity velocity;
    
    connect distX -> velocity.distX;
    connect distY -> velocity.distY;
    connect velocity.velX -> velX;
    connect velocity.velY -> velY;
    
Bernhard Rumpe's avatar
BR-sy    
Bernhard Rumpe committed
22
}