LightVoting
 All Classes Namespaces Files Functions Variables Pages
org.lightvoting.simulation.constants.CVariableBuilder Class Reference

Created by sophie on 21.02.17. More...

Inherits IVariableBuilder.

+ Collaboration diagram for org.lightvoting.simulation.constants.CVariableBuilder:

Public Member Functions

 CVariableBuilder (final CEnvironment p_environment)
 constructor More...
 
final Stream< IVariable<?> > generate (final IAgent<?> p_agent, final IInstantiable p_runningcontext)
 

Private Attributes

final CEnvironment m_environment
 environment reference More...
 

Detailed Description

Definition at line 41 of file CVariableBuilder.java.

Constructor & Destructor Documentation

org.lightvoting.simulation.constants.CVariableBuilder.CVariableBuilder ( final CEnvironment  p_environment)
Parameters
p_environmentenvironment

Definition at line 55 of file CVariableBuilder.java.

References org.lightvoting.simulation.constants.CVariableBuilder.m_environment.

56  {
57  m_environment = p_environment;
58  }
final CEnvironment m_environment
environment reference

Member Function Documentation

final Stream<IVariable<?> > org.lightvoting.simulation.constants.CVariableBuilder.generate ( final IAgent<?>  p_agent,
final IInstantiable  p_runningcontext 
)

Definition at line 61 of file CVariableBuilder.java.

62  {
63  return Stream.of(
64  new CConstant<>( "MyName", p_agent.<CVotingAgent>raw().name() )
65  );
66  }

Member Data Documentation

final CEnvironment org.lightvoting.simulation.constants.CVariableBuilder.m_environment
private