Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (c) 1996-2001
  * Logica Mobile Networks Limited
  * All rights reserved.
  *
  * This software is distributed under Logica Open Source License Version 1.0
  * ("Licence Agreement"). You shall use it and distribute only in accordance
  * with the terms of the License Agreement.
  *
 */
package org.smpp.smscsim;
Simple container to hold set of somehow related processors.

Author(s):
Logica Mobile Networks SMPP Open Source Team
Version:
$Revision: 1.1 $
See also:
PDUProcessor
public class PDUProcessorGroup {
	private Vector<PDUProcessorprocessors = null;

Initialises the underlying container.
	public PDUProcessorGroup() {
	}

Initialises the underlying container to the given size.
	public PDUProcessorGroup(int initSize) {
		 = new Vector<PDUProcessor>(initSize);
	}

Adds single processor to the group.

Parameters:
p the processor to add
See also:
remove(org.smpp.smscsim.PDUProcessor)
	public void add(PDUProcessor p) {
		synchronized () {
			if (!.contains(p)) {
			}
		}
	}

Removes single processor from the group.

Parameters:
p the processor to remove
See also:
add(org.smpp.smscsim.PDUProcessor)
	public void remove(PDUProcessor p) {
		synchronized () {
		}
	}

Returns the count of the processors currently in the group.

Returns:
current count of processors in the group
	public int count() {
		synchronized () {
			return .size();
		}
	}

Returns ith processor in the group.

Parameters:
i index of the processor to return
Returns:
the processor on the given position
	public PDUProcessor get(int i) {
		synchronized () {
			return (PDUProcessor.get(i);
		}
	}
/*
 * $Log: not supported by cvs2svn $
 */
New to GrepCode? Check out our FAQ X