Skip to content

Commit

Permalink
changes in Frame
Browse files Browse the repository at this point in the history
  • Loading branch information
tainfante committed Dec 13, 2017
1 parent 48334c5 commit 31dc407
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/classes/Frame.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@

import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;

public class Frame {

private byte number_of_channels;
private Integer[] channel_data=new Integer[10];
ArrayList<Integer> channel_data=new ArrayList<>();
private String formattedTime;
private DateTimeFormatter formatter = DateTimeFormatter.ISO_LOCAL_TIME ;

//Constructors

public Frame(Integer[] channel_data) {
public Frame(ArrayList<Integer> channel_data) {
this.channel_data = channel_data;
LocalTime time=LocalTime.now();
formattedTime = formatter.format(time);
Expand All @@ -25,7 +26,7 @@ public void setNumber_of_channels(byte number_of_channels) {
this.number_of_channels = number_of_channels;
}

public void setChannel_data(Integer[] channel_data) {
public void setChannel_data(ArrayList<Integer> channel_data) {
this.channel_data = channel_data;
}

Expand All @@ -39,7 +40,7 @@ public byte getNumber_of_channels() {
return number_of_channels;
}

public Integer[] getChannel_data() {
public ArrayList<Integer> getChannel_data() {
return channel_data;
}

Expand Down

0 comments on commit 31dc407

Please sign in to comment.