lrs.visitor
Class RemLeadMods

java.lang.Object
  extended by lrs.visitor.RemLeadMods
All Implemented Interfaces:
IAlgo

public class RemLeadMods
extends java.lang.Object
implements IAlgo

Removes the leading consecutive multiple of an integer from the host.


Field Summary
static RemLeadMods Singleton
           
 
Constructor Summary
private RemLeadMods()
           
 
Method Summary
 java.lang.Object emptyCase(LRStruct host, java.lang.Object... param)
          Operates on an empty LRStruct host, given an input object.
 java.lang.Object nonEmptyCase(LRStruct host, java.lang.Object... param)
          Removes leading multiples of param from host.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Singleton

public static RemLeadMods Singleton
Constructor Detail

RemLeadMods

private RemLeadMods()
Method Detail

emptyCase

public java.lang.Object emptyCase(LRStruct host,
                                  java.lang.Object... param)
Description copied from interface: IAlgo
Operates on an empty LRStruct host, given an input object.

Specified by:
emptyCase in interface IAlgo
Parameters:
host -
param -
Returns:

nonEmptyCase

public java.lang.Object nonEmptyCase(LRStruct host,
                                     java.lang.Object... param)
Removes leading multiples of param from host.

Specified by:
nonEmptyCase in interface IAlgo
Parameters:
host - the LRS to filter.
param - the factor to be filtered
Returns: