com.krisharris.mpk
Class Board

java.lang.Object
  extended by com.krisharris.mpk.Board

public class Board
extends java.lang.Object

Author:
Kristopf

Constructor Summary
Board(java.lang.String _location, java.lang.String _type, java.lang.String _name, int _serialnumber)
          Typically called intenrally
 
Method Summary
 AnalogIn analogIn(int which)
          retuns a AnalogIn reperesenting one of the 8 analog ins on the Making Things board
 java.lang.String getLocation()
           
 java.lang.String getName()
           
 int getSerialnumber()
           
 java.lang.String getType()
           
 void pollAnalogIn(boolean p)
          Turn on or off the automatic polling of the analog inputs
 void sendMessage(java.lang.String message, java.util.Vector args)
          Sends a message by adding it to the queue.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Board

public Board(java.lang.String _location,
             java.lang.String _type,
             java.lang.String _name,
             int _serialnumber)
Typically called intenrally

Parameters:
_location -
_type -
_name -
_serialnumber -
Method Detail

getType

public java.lang.String getType()

getLocation

public java.lang.String getLocation()

getName

public java.lang.String getName()

getSerialnumber

public int getSerialnumber()

sendMessage

public void sendMessage(java.lang.String message,
                        java.util.Vector args)
Sends a message by adding it to the queue. (Message will get sent after drawing)

Parameters:
message - the OSC message to send
args - (can be null) the paramaters of the message

pollAnalogIn

public void pollAnalogIn(boolean p)
Turn on or off the automatic polling of the analog inputs

Parameters:
p - set this to true to automatically poll analog inputs

analogIn

public AnalogIn analogIn(int which)
retuns a AnalogIn reperesenting one of the 8 analog ins on the Making Things board

Parameters:
which - the analog in (0..7)
Returns:
The requested analog in, or null if it is out of range