aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kekztech/IConduit.java
blob: d36c590a63946a38676dde3613d86cc56227b6f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package kekztech;

public interface IConduit {
	
	public void setNetwork(ConduitNetworkController network);
	public ConduitNetworkController getNetwork();
	
	/**
	 * Returns the conduit's throughput capacity.
	 * 
	 * @return
	 * 			The conduit's throughput capacity.
	 */
	public Number getCapacity();
	
	/**
	 * Call when the throughput capacity was exceeded while traversing this conduit.
	 */
	public void onOverload();
	
	public boolean testForInputFilter(Object o);
	public boolean testForOutputFilter(Object o);
}