This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
generated from microsoft/vscode-remote-try-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
34 changes: 30 additions & 4 deletions
34
src/main/java/com/utp/clsEstructuraDiscretas/pry4/AppCombinatoria.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
33
src/main/java/com/utp/clsEstructuraDiscretas/pry4/Formulas.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.")); | ||
} | ||
|
||
} |