FSM Library - C++ version
Public Member Functions | Friends | List of all members
IOListContainer Class Reference

Public Member Functions

 IOListContainer (const std::shared_ptr< std::vector< std::vector< int >>> iolLst, const std::shared_ptr< FsmPresentationLayer > presentationLayer)
 
 IOListContainer (const int maxInput, const int minLength, const int maxLenght, const std::shared_ptr< FsmPresentationLayer > presentationLayer)
 
std::shared_ptr< std::vector< std::vector< int > > > getIOLists () const
 
void add (const Trace &trc)
 
int size () const
 

Friends

std::ostream & operator<< (std::ostream &out, const IOListContainer &ot)
 

Constructor & Destructor Documentation

IOListContainer::IOListContainer ( const std::shared_ptr< std::vector< std::vector< int >>>  iolLst,
const std::shared_ptr< FsmPresentationLayer presentationLayer 
)

Create a new IOListContainer (test cases)

Parameters
iolLstThe list of input
presentationLayerThe presentation layer to use
IOListContainer::IOListContainer ( const int  maxInput,
const int  minLength,
const int  maxLenght,
const std::shared_ptr< FsmPresentationLayer presentationLayer 
)

Create an IOListContainer with input traces from length minLength up to length maxLength. For each length, all sequences with arbitrary inputs in range 0..maxInput are created.

Parameters
maxInputmaximal input value to be created in an input trace.
minLengthminimal length of the input traces to be created.
maxLengthmaximal length of a trace to be created.
presentationLayerThe presentation layer to use

Member Function Documentation

void IOListContainer::add ( const Trace trc)

Add a new trace to the IOListContainer

Parameters
trcThe trace to add

Here is the call graph for this function:

Here is the caller graph for this function:

std::shared_ptr< std::vector< std::vector< int > > > IOListContainer::getIOLists ( ) const

Getter for the input list

Returns
The input list

Here is the caller graph for this function:

int IOListContainer::size ( ) const

Getter for the size of the IOListContainer

Returns
The size of the IOListContainer

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const IOListContainer ot 
)
friend

Output the IOListContainer to a standard output stream

Parameters
outThe standard output stream to use
otThe IOListContainer to print
Returns
The standard output stream used, to allow user to cascade <<

The documentation for this class was generated from the following files: