Advertisement
simeonvarbanov

Untitled

Oct 31st, 2012
1,134
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module bank
  2. {
  3. typedef sequence <Account> accounts;
  4. struct Account
  5. {
  6. long accountId;
  7. double balance;
  8. string name;
  9. };
  10. interface Customer
  11. {
  12. boolean payIn(out double amount,out long accountId);
  13. account getAccounts(out string name);
  14. };
  15. interface Administrator
  16. {
  17. void createAccount(in double balance ,in string name);
  18. boolean deleteAccounts(inout long accountId);
  19. };
  20. };
Advertisement
RAW Paste Data Copied
Advertisement