|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectpacketNetworking.Communicator
packetNetworking.Server
mediaplayer.Main
public class Main
This class maintains the basic functions of the control suite This includes arranging of items, trials, maintaining a playlist and more.
Field Summary | |
---|---|
static int |
activeItem
the active item in a trial. used to control item coloring |
java.util.ArrayList<java.lang.String> |
clipList
the list of clip names |
static boolean |
isRunning
isRunning is true if a test is running |
ListPacket |
listPacket
Packet received from the clip recorder control application |
Playlist |
playlist
The active playlist |
static Salt |
salt
An instance of a modified salt version. |
Status |
status
The status of the control suite |
static java.lang.String |
stopTC
The stop time for the active clip |
static java.lang.String |
timeCode
The current time code |
static boolean |
userHasPressedStart
|
static MediaPlayerView |
view
This is the gui of the application. |
Fields inherited from class packetNetworking.Server |
---|
clientSocketsOpen, hasSentPing, isAllSocketsOpen, pingErrorCounter, ports |
Constructor Summary | |
---|---|
Main(MediaPlayerView view)
Sets up the application. |
Method Summary | |
---|---|
void |
changeNrOfItemsPerTrial()
Called when the user changes the number of items per trial. |
void |
editItem(Item item)
edits an existing item |
void |
editPlaylistName(java.lang.String text)
sets a new playlist name |
void |
newItem()
creates a new item dialog |
void |
nextTrial()
Jumps to the next trial and plays the first item in the next trial |
void |
play()
start the test from the beginning. |
void |
playActiveItem(int index)
sets the activeitem parameter and plays that item |
void |
previousTrial()
jumps to the previous trial and plays the first clip in that trial |
void |
ProcessPacket(Packet pck)
Process ping packets only. |
void |
saveSession()
Saves a session using the sessionwriter |
void |
sendPacket(Packet pck)
Sends a packet. |
void |
setActiveItem()
sets active item in a trial. resets all other active trials |
void |
setActiveItem(int index)
sets the active item a the selected trial to index |
void |
setDesign(Design design)
sets a design and opens the midi devices |
void |
setTimeCode(java.lang.String tc)
Sets the current time code. |
void |
stop()
Stops playback from the clip recorder |
void |
UpdateStatus(int status)
Update connection status of the server |
Methods inherited from class packetNetworking.Server |
---|
Listen, Talk, Talk |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static MediaPlayerView view
public static Salt salt
public static boolean isRunning
public static int activeItem
public Playlist playlist
public java.util.ArrayList<java.lang.String> clipList
public static boolean userHasPressedStart
public ListPacket listPacket
public Status status
public static java.lang.String timeCode
public static java.lang.String stopTC
Constructor Detail |
---|
public Main(MediaPlayerView view)
view
- Method Detail |
---|
public void editPlaylistName(java.lang.String text)
text
- public void newItem()
public void editItem(Item item)
item
- public void setActiveItem()
public void setActiveItem(int index)
index
- public void playActiveItem(int index)
index
- public void nextTrial()
public void previousTrial()
public void play()
public void stop()
public void sendPacket(Packet pck)
pck
- public void ProcessPacket(Packet pck)
Server
ProcessPacket
in class Server
public void UpdateStatus(int status)
Server
UpdateStatus
in class Server
public void setDesign(Design design)
design
- public void changeNrOfItemsPerTrial()
public void saveSession()
public void setTimeCode(java.lang.String tc)
tc
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |