Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. public static int SAMPLE_FREQ = 44100;
  2. private String nom;
  3. private CommunicationPort[] inputPorts;
  4. private CommunicationPort[] outputPorts;
  5.  
  6. //CONS
  7.  
  8. public ModuleAbstract (String nom, int nbInputPorts , int nbOutputPorts){
  9. this.nom = nom;
  10. inputPorts = new CommunicationPort[nbInputPorts];
  11. outputPorts = new CommunicationPort[nbOutputPorts];
  12. for(int i = 0; i<nbInputPorts ; i++){
  13. inputPorts[i].setConnexion(null);
  14. }
  15. for(int i = 0; i<nbOutputPorts ; i++){
  16. outputPorts[i].setConnexion(null);
  17. }
  18.  
  19. }
  20.  
  21. //METHODE
  22.  
  23. public String getNom() {
  24. return nom;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement