90919293949596979899100
{ if ( !node.hasFlag( GridFlags.REQUIRE_CHANNEL ) ) return; } PartP2PTunnel t = (PartP2PTunnel) machine; // AELog.info( "add-" + (t.output ? "output: " : "input: ") + t.freq // ); if ( t.output ) outputs.put( t.freq, t );
114115116117118119120121122123124
{ if ( !node.hasFlag( GridFlags.REQUIRE_CHANNEL ) ) return; } PartP2PTunnel t = (PartP2PTunnel) machine; // AELog.info( "rmv-" + (t.output ? "output: " : "input: ") + t.freq // ); if ( t.output ) outputs.remove( t.freq, t );
136137138139140141142143144145146147148
if ( configChange ) p.onTunnelConfigChange(); p.onTunnelNetworkChange(); } PartP2PTunnel in = inputs.get( freq ); if ( in != null ) { if ( configChange ) in.onTunnelConfigChange(); in.onTunnelNetworkChange(); } }
147148149150151152153154155156157
} } public TunnelCollection<PartP2PTunnel> getOutputs(long freq, Class<? extends PartP2PTunnel> c) { PartP2PTunnel in = inputs.get( freq ); if ( in == null ) return NullColl; TunnelCollection<PartP2PTunnel> out = inputs.get( freq ).getCollection( outputs.get( freq ), c ); if ( out == null )