Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Definir implementaciones basicas
Browse files Browse the repository at this point in the history
  • Loading branch information
Laifsyn committed May 30, 2024
1 parent bfc6003 commit 5f66d28
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,38 @@

package com.utp.clsEstructuraDiscretas.pry4;

import javax.swing.JFrame;
import java.awt.GridBagLayout;

public class AppCombinatoria {

}

class UserInterface {
void spawn_app(){

String pry4 = "Proyecto 4 - Combinatorias";
JFrame frame = new JFrame(pry4);

void run_app() {
frame.setSize(800, 600);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setLayout(new GridBagLayout());

frame.setVisible(true);
}
}

public void SendCommand(Commands command) {
switch (command) {
case Commands.CalculateCombinatoria argumentos -> {
}
case Commands.UpdateRadios() -> {
}
}
}
}

// @formatter:off
sealed interface Commands {
public record CalculateCombinatoria(String n, String r) implements Commands {}
public record UpdateRadios() implements Commands {}
}
// @formatter:on
33 changes: 33 additions & 0 deletions src/main/java/com/utp/clsEstructuraDiscretas/pry4/Formulas.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package com.utp.clsEstructuraDiscretas.pry4;

import java.math.BigInteger;

import com.utp.utils.Result;

public class Formulas {

public static Result<BigInteger, Exception> Comb_sin_repeticion(String[] args) {
return Result.error(new UnsupportedOperationException("Not supported yet."));
}

public static Result<BigInteger, Exception> Comb_con_repeticion(String[] args) {
return Result.error(new UnsupportedOperationException("Not supported yet."));
}

public static Result<BigInteger, Exception> Varianza_sin_repeticion(String[] args) {
return Result.error(new UnsupportedOperationException("Not supported yet."));
}

public static Result<BigInteger, Exception> Varianza_con_repeticion(String[] args) {
return Result.error(new UnsupportedOperationException("Not supported yet."));
}

public static Result<BigInteger, Exception> Permutacion_sin_repeticion(String[] args) {
return Result.error(new UnsupportedOperationException("Not supported yet."));
}

public static Result<BigInteger, Exception> Permutacion_con_repeticion(String[] args) {
return Result.error(new UnsupportedOperationException("Not supported yet."));
}

}

0 comments on commit 5f66d28

Please sign in to comment.