com.wirefusion.player
Class Wire

java.lang.Object
  extended by com.wirefusion.player.Wire

public class Wire
extends java.lang.Object

Represents a Wire object


Constructor Summary
Wire()
          Creates a Wire.
 
Method Summary
 void connect(Port sourcePort, Port destPort, Wob optionalWireParameter)
          Make sure the argument of the source port is compatible with the destination port or, if not, that optionalWireParameter is compatible.
 void disconnect()
          Disconnects the Wire if it is connected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wire

public Wire()
Creates a Wire.

Method Detail

connect

public void connect(Port sourcePort,
                    Port destPort,
                    Wob optionalWireParameter)
Make sure the argument of the source port is compatible with the destination port or, if not, that optionalWireParameter is compatible. If you don't want to use a wire parameter, use null as wire parameter argument.

Parameters:
sourcePort - The source port. Must be an out-port.
destPort - The destination port. Must be an in-port.
optionalWireParameter - Optional parameter. Allowed types are NumberWob, BoolWob, ColorWob, TextWob or Number2DWob.

disconnect

public void disconnect()
Disconnects the Wire if it is connected.