Skip to content

Commit

Permalink
updated vdm model to match model description types
Browse files Browse the repository at this point in the history
  • Loading branch information
lausdahl committed Jul 19, 2016
1 parent a643257 commit d59a88e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ class LowerValveActuator

instance variables

public static valveState : real := 0.0;
public static valveState : bool := false;

values

public open : real = 1.0;
public close : real = 0.0;
public open : bool = true;
public close : bool = false;

operations

public setValveState : real ==> ()
public setValveState : bool ==> ()
setValveState (state) ==
valveState := state;

end LowerValveActuator
end LowerValveActuator
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ class UpperValveActuator

instance variables

public static valveState : real := 0.0;
public static valveState : bool :=false;

values

public open : real = 1.0;
public close : real = 0.0;
public open : bool = true;
public close : bool = false;

operations

public setValveState : real ==> ()
public setValveState : bool ==> ()
setValveState (state) ==
valveState := state;

end UpperValveActuator
end UpperValveActuator

0 comments on commit d59a88e

Please sign in to comment.