LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.action.builtin.datetime.CApplyMonths Class Reference

subtract or adds a number of months. More...

+ Inheritance diagram for org.lightjason.agentspeak.action.builtin.datetime.CApplyMonths:
+ Collaboration diagram for org.lightjason.agentspeak.action.builtin.datetime.CApplyMonths:

Protected Member Functions

final Stream<?> applyminus ( @Nonnull final Stream< ZonedDateTime > p_datetime, final long p_value)
 
final Stream<?> applyplus ( @Nonnull final Stream< ZonedDateTime > p_datetime, final long p_value)
 
- Protected Member Functions inherited from org.lightjason.agentspeak.action.builtin.datetime.IPlusMinus
 IPlusMinus ()
 ctor More...
 
abstract Stream<?> applyminus ( @Nonnull final Stream< ZonedDateTime > p_datetime, final long p_value)
 apply function for plus operator More...
 
abstract Stream<?> applyplus ( @Nonnull final Stream< ZonedDateTime > p_datetime, final long p_value)
 apply function for minus operator More...
 
- Protected Member Functions inherited from org.lightjason.agentspeak.action.builtin.IBuiltinAction
 IBuiltinAction ()
 ctor More...
 
 IBuiltinAction (final int p_length)
 ctor More...
 

Static Private Attributes

static final long serialVersionUID = 7832801991688710533L
 serial id More...
 

Additional Inherited Members

- Public Member Functions inherited from org.lightjason.agentspeak.action.builtin.datetime.IPlusMinus
final IFuzzyValue< Boolean > execute (final boolean p_parallel, @Nonnull final IContext p_context, @Nonnull final List< ITerm > p_argument, @Nonnull final List< ITerm > p_return)
 defines a plan-body operation More...
 
final int minimalArgumentNumber ()
 minimum number of arguments More...
 
- Public Member Functions inherited from org.lightjason.agentspeak.action.builtin.IBuiltinAction
final IPath name ()
 returns the name with path of the action More...
 
- Public Member Functions inherited from org.lightjason.agentspeak.action.IBaseAction
final boolean equals (final Object p_object)
 
final int hashCode ()
 
final String toString ()
 
- Public Member Functions inherited from org.lightjason.agentspeak.action.IAction
default Stream< IVariable<?> > variables ()
 returns a stream with all used variables More...
 
- Public Attributes inherited from org.lightjason.agentspeak.action.IAction
long serialVersionUID = -6374480398439703170L
 serial id More...
 
- Static Protected Attributes inherited from org.lightjason.agentspeak.action.builtin.IBuiltinAction
static final Logger LOGGER = CCommon.logger( IBuiltinAction.class )
 logger More...
 
- Static Protected Attributes inherited from org.lightjason.agentspeak.action.IBaseAction
static final Logger LOGGER = org.lightjason.agentspeak.common.CCommon.logger( IAction.class )
 logger More...
 

Detailed Description

The action adds / subtracts a number of months to the date-time objects, the first argument is a string with minus or plus, the second argument the number and all other arguments are date-time objects, the action returns the modified date-time objects, the action never fails

[O1|O2] = datetime/applymonths( "minus|plus" 6, DateTime1, DateTime2 );

Definition at line 44 of file CApplyMonths.java.

Member Function Documentation

◆ applyminus()

final Stream<?> org.lightjason.agentspeak.action.builtin.datetime.CApplyMonths.applyminus ( @Nonnull final Stream< ZonedDateTime >  p_datetime,
final long  p_value 
)
protected

Definition at line 53 of file CApplyMonths.java.

◆ applyplus()

final Stream<?> org.lightjason.agentspeak.action.builtin.datetime.CApplyMonths.applyplus ( @Nonnull final Stream< ZonedDateTime >  p_datetime,
final long  p_value 
)
protected

Definition at line 60 of file CApplyMonths.java.

Member Data Documentation

◆ serialVersionUID

final long org.lightjason.agentspeak.action.builtin.datetime.CApplyMonths.serialVersionUID = 7832801991688710533L
staticprivate

Definition at line 49 of file CApplyMonths.java.